void (final @NotNull AnActionEvent e) { Project project = e.getData(CommonDataKeys.PROJECT); if (project != null && project.isDisposed()) { return; } if (project == null) { //setup template project configurations project = ProjectManager.getInstance().getDefaultProject(); } RunnerAndConfigurationSettings configurationSettings = e.getData(RunToolbarPopupKt.getRUN_CONFIGURATION_KEY()); if (configurationSettings != null) { new EditConfigurationsDialog(project, new ProjectRunConfigurationConfigurable(project) { @Override protected RunnerAndConfigurationSettings getInitialSelectedConfiguration() { return configurationSettings; } }, e.getDataContext()).show(); } else { new EditConfigurationsDialog(project, e.getDataContext()).show(); } }