void (@NotNull AnActionEvent e) { DataContext context = e.getDataContext(); Project project = e.getProject(); assert project != null; Module module = e.getData(PlatformCoreDataKeys.MODULE); PsiDocumentManager.getInstance(project).commitAllDocuments(); PsiFile file = getFile(context, project); assert file != null; if (CopyrightManager.getInstance(project).getCopyrightOptions(file) == null) { if (Messages.showOkCancelDialog(project, CopyrightBundle.message("dialog.message.no.copyright.configured"), CopyrightBundle.message("dialog.title.no.copyright.available"), Messages.getQuestionIcon()) == Messages.OK) { ShowSettingsUtil.getInstance().showSettingsDialog(project, new CopyrightProjectConfigurable(project).getDisplayName()); } else { return; } } new UpdateCopyrightProcessor(project, module, file).run(); }