private TextEditorHighlightingPass getOrCreateShowAutoImportPass(@NotNull Editor editor,
                                                                   @NotNull PsiFile psiFile,
                                                                   @NotNull ProgressIndicator progressIndicator) {
    ApplicationManager.getApplication().assertIsNonDispatchThread();
    TextEditorHighlightingPass pass = myCachedShowAutoImportPass;
    if (pass == null) {
      ProgressManager.getInstance().executeProcessUnderProgress(() -> {
        ShowAutoImportPassFactory siFactory = TextEditorHighlightingPassRegistrarImpl.EP_NAME.findExtensionOrFail(ShowAutoImportPassFactory.class);
        try (AccessToken ignored = ClientId.withClientId(ClientEditorManager.getClientId(editor));
             AccessToken ignored2 = SlowOperations.knownIssue("IDEA-305557, EA-599727")) {
          TextEditorHighlightingPass highlightingPass = siFactory.createHighlightingPass(psiFile, editor);
          if (highlightingPass != null) {
            myCachedShowAutoImportPass = highlightingPass;
          }
        }
      }, progressIndicator);
    }
    return myCachedShowAutoImportPass;
  }
private TextEditorHighlightingPass getOrCreateShowAutoImportPass(@NotNull Editor editor,
                                                                   @NotNull PsiFile psiFile,
                                                                   @NotNull ProgressIndicator progressIndicator)