@RequiresEdt
  public static void resetEditorToDefaultState(@NotNull Editor editor) {
    DocRenderItemManager.getInstance().resetToDefaultState(editor);
    DocRenderPassFactory.forceRefreshOnNextPass(editor);
    Project project = editor.getProject();
    if (project != null) {
      DaemonCodeAnalyzer.getInstance(project).restart();
    }
  }
@RequiresEdt
  public static void resetEditorToDefaultState(@NotNull Editor editor)