List<RangeHighlighter> (@NotNull Editor editor, @Nullable List<? extends DiffFragment> wordDiff) { if (wordDiff == null) return emptyList(); List<RangeHighlighter> highlighters = new ArrayList<>(); for (DiffFragment fragment : wordDiff) { int vcsStart = fragment.getStartOffset1(); int vcsEnd = fragment.getEndOffset1(); TextDiffType type = getDiffType(fragment); highlighters.addAll(DiffDrawUtil.createInlineHighlighter(editor, vcsStart, vcsEnd, type)); } return highlighters; }