void () { // Add actions similar to com.intellij.execution.actions.ChooseRunConfigurationPopup.ConfigurationActionsStep#buildActions addExecutorActions(this, executor -> new ExecutorRegistryImpl.RunSpecifiedConfigExecutorAction(executor, myConfiguration, false), myExecutorFilter); addSeparator(ExperimentalUI.isNewUI() ? ExecutionBundle.message("choose.run.popup.separator") : null); if (!ExperimentalUI.isNewUI()) { Executor runExecutor = DefaultRunExecutor.getRunExecutorInstance(); addAction(new ExecutorRegistryImpl.RunSpecifiedConfigExecutorAction(runExecutor, myConfiguration, true)); } else { addAction(ActionManager.getInstance().getAction(IdeActions.ACTION_EDIT_RUN_CONFIGURATIONS)); } if (myConfiguration.isTemporary()) { String actionName = ExecutionBundle.message("choose.run.popup.save"); String description = ExecutionBundle.message("choose.run.popup.save.description"); addAction(new ActionWithWriteAccess(actionName, description, !ExperimentalUI.isNewUI() ? AllIcons.Actions.MenuSaveall : null) { @Override public void actionPerformed(@NotNull AnActionEvent e) { RunManager.getInstance(myProject).makeStable(myConfiguration); } }); } String actionName = ExecutionBundle.message("choose.run.popup.delete"); String description = ExecutionBundle.message("choose.run.popup.delete.description"); addAction(new ActionWithWriteAccess(actionName, description, !ExperimentalUI.isNewUI() ? AllIcons.Actions.Cancel : null) { @Override public void actionPerformed(@NotNull AnActionEvent e) { ChooseRunConfigurationPopup.deleteConfiguration(myProject, myConfiguration, null); } }); }