public static EditorHighlighter createEmptyHighlighter(@Nullable Project project, @NotNull Document document) {
    EditorHighlighter highlighter = new EmptyEditorHighlighter(new TextAttributes()) {
      @Override
      public @NotNull HighlighterIterator createIterator(int startOffset) {
        setText(document.getImmutableCharSequence());
        return super.createIterator(startOffset);
      }

      @Override
      public void setColorScheme(@NotNull EditorColorsScheme scheme) {
      }
    };
    highlighter.setEditor(new HighlighterClient() {
      @Override
      public Project getProject() {
        return project;
      }

      @Override
      public void repaint(int start, int end) {
      }

      @Override
      public Document getDocument() {
        return document;
      }
    });
    return highlighter;
  }
public static EditorHighlighter createEmptyHighlighter(@Nullable Project project, @NotNull Document document)