void (@Nullable Project project, @NotNull EditorEx editor, @Nullable HighlightersData highlightersData) { EditorHighlighter highlighter = highlightersData != null ? highlightersData.myHighlighter : null; UnifiedEditorRangeHighlighter rangeHighlighter = highlightersData != null ? highlightersData.myRangeHighlighter : null; if (highlighter != null) { editor.setHighlighter(highlighter); } else { editor.setHighlighter(DiffUtil.createEmptyEditorHighlighter()); } UnifiedEditorRangeHighlighter.erase(project, editor.getDocument()); if (rangeHighlighter != null) { rangeHighlighter.apply(project, editor.getDocument()); } }