public void processContextHints(@NotNull DiffRequest request, @NotNull DiffContext context) { if (!isEnabled()) return; for (BinaryEditorHolder holder : myHolders) { FileEditor editor = holder.getEditor(); TransferableFileEditorState state = getEditorState(holder.getEditor()); if (state != null) { readContextData(context, editor, state); } } }
public void updateContextHints(@NotNull DiffRequest request, @NotNull DiffContext context) { if (!isEnabled()) return; Set<String> updated = ContainerUtil.newHashSet(); for (BinaryEditorHolder holder : myHolders) { TransferableFileEditorState state = getEditorState(holder.getEditor()); if (state != null) { boolean processed = !updated.add(state.getEditorId()); if (!processed) writeContextData(context, state); } } }