@Nullable
  private static EditorHighlighter buildHighlighter(@Nullable Project project,
                                                    @NotNull Document document,
                                                    @NotNull DocumentContent content1,
                                                    @NotNull DocumentContent content2,
                                                    @NotNull CharSequence text1,
                                                    @NotNull CharSequence text2,
                                                    @NotNull List<HighlightRange> ranges,
                                                    int textLength) {
    EditorHighlighter highlighter1 = DiffUtil.initEditorHighlighter(project, content1, text1);
    EditorHighlighter highlighter2 = DiffUtil.initEditorHighlighter(project, content2, text2);

    if (highlighter1 == null && highlighter2 == null) return null;
    if (highlighter1 == null) highlighter1 = DiffUtil.initEmptyEditorHighlighter(text1);
    if (highlighter2 == null) highlighter2 = DiffUtil.initEmptyEditorHighlighter(text2);

    return new UnifiedEditorHighlighter(document, highlighter1, highlighter2, ranges, textLength);
  }
@Nullable
  private static EditorHighlighter buildHighlighter(@Nullable Project project,
                                                    @NotNull Document document,
                                                    @NotNull DocumentContent content1,
                                                    @NotNull DocumentContent content2,
                                                    @NotNull CharSequence text1,
                                                    @NotNull CharSequence text2,
                                                    @NotNull List<HighlightRange> ranges,
                                                    int textLength)