HighlightersData (@NotNull ChangedBlockData blockData) { List<HighlightRange> ranges = blockData.getRanges(); Document document1 = getContent1().getDocument(); Document document2 = getContent2().getDocument(); ProgressManager.checkCanceled(); EditorHighlighter highlighter = buildHighlighter(myProject, myDocument, getContent1(), getContent2(), document1.getCharsSequence(), document2.getCharsSequence(), ranges, myDocument.getTextLength()); ProgressManager.checkCanceled(); UnifiedEditorRangeHighlighter rangeHighlighter = new UnifiedEditorRangeHighlighter(myProject, document1, document2, ranges); return new HighlightersData(highlighter, rangeHighlighter); }