void (@NotNull AnActionEvent e) { Project project = e.getProject(); RunnerAndConfigurationSettings settings = e.getData(MavenDataKeys.RUN_CONFIGURATION); assert settings != null && project != null; int res = Messages .showYesNoDialog(project, MavenProjectBundle.message("maven.run.configuration.remove.confirm", settings.getName()), "", Messages.getQuestionIcon()); if (res == Messages.YES) { RunManager.getInstance(project).removeConfiguration(settings); } }