@Override
  public void actionPerformed(@NotNull AnActionEvent e) {
    Project project = e.getData(CommonDataKeys.PROJECT);
    if (project == null) return;
    if (ChangeListManager.getInstance(project).isFreezedWithNotification(VcsBundle.message("patch.apply.cannot.apply.now"))) return;
    FileDocumentManager.getInstance().saveAllDocuments();

    String clipboardText = StringUtil.notNullize(ClipboardUtil.getTextInClipboard());
    if (PatchReader.isPatchContent(clipboardText)) {
      new MyApplyPatchFromClipboardDialog(project, clipboardText).show();
    }
    else {
      VcsNotifier.getInstance(project).notifyWeakError(PATCH_APPLY_NOT_PATCH_FILE, VcsBundle.message("patch.apply.not.patch.clipboard"));
    }
  }
@Override
  public void actionPerformed(@NotNull AnActionEvent e)