@Override
  public void actionPerformed(@NotNull AnActionEvent e) {
    Project project = e.getProject();
    if (project == null) return;

    Editor editor = getEditor(e.getDataContext(), project, false);
    if (editor == null) return;

    PsiFile psiFile = PsiUtilBase.getPsiFileInEditor(editor, project);
    if (psiFile == null) return;

    if (!ApplicationManager.getApplication().isUnitTestMode() && !editor.getContentComponent().isShowing()) return;
    getHandler(e.getDataContext()).invoke(project, editor, psiFile, e.isFromContextMenu());
  }
@Override
  public void actionPerformed(@NotNull AnActionEvent e)