public static void saveFieldModification()

in src/main/java/com/intellij/rt/debugger/agent/CollectionBreakpointStorage.java [31:45]


  public static void saveFieldModification(String internalClsName,
                                           String fieldName,
                                           Object clsInstance,
                                           Object collectionInstance,
                                           boolean shouldSaveStack) {
    if (!ENABLED) {
      return;
    }
    String clsName = getClassName(internalClsName);
    CapturedField field = new CapturedField(clsName, fieldName, clsInstance);
    FIELD_MODIFICATIONS_STORAGE.putIfAbsent(field, new FieldHistory());
    FieldHistory history = FIELD_MODIFICATIONS_STORAGE.get(field);
    Throwable exception = shouldSaveStack ? new Throwable() : null;
    history.add(new FieldModificationInfo(exception, collectionInstance));
  }