public static void clearHighlightingAndLineMarkers(Editor editor, @NotNull Project project) {
    MarkupModel markupModel = DocumentMarkupModel.forDocument(editor.getDocument(), project, true);

    for (RangeHighlighter highlighter : markupModel.getAllHighlighters()) {
      HighlightInfo info = HighlightInfo.fromRangeHighlighter(highlighter);
      if (info == null) continue;
      if (info.type == TYPE) {
        highlighter.dispose();
      }
    }

    clearLineMarkers(editor);
  }
public static void clearHighlightingAndLineMarkers(Editor editor, @NotNull Project project)