void (@NotNull AnActionEvent e) { final Project project = e.getRequiredData(CommonDataKeys.PROJECT); if (ChangeListManager.getInstance(project).isFreezedWithNotification(VcsBundle.message("patch.apply.cannot.apply.now"))) return; FileDocumentManager.getInstance().saveAllDocuments(); String clipboardText = StringUtil.notNullize(ClipboardUtil.getTextInClipboard()); new MyApplyPatchFromClipboardDialog(project, clipboardText).show(); }