Runnable (@NotNull final ProgressIndicator indicator) { return () -> { clearDiffPresentation(); boolean shouldHighlight = getTextSettings().getHighlightPolicy() != HighlightPolicy.DO_NOT_HIGHLIGHT; if (shouldHighlight) { final DocumentContent content = getContent(); final Document document = content.getDocument(); TextDiffType type = getSide().select(TextDiffType.DELETED, TextDiffType.INSERTED); myHighlighters.addAll(DiffDrawUtil.createHighlighter(getEditor(), 0, getLineCount(document), type, false)); } myInitialScrollHelper.onRediff(); }; }