DefaultActionGroup (@NotNull JComponent button, @NotNull DataContext context) { final DefaultActionGroup allActionsGroup = new DefaultActionGroup(); final Project project = CommonDataKeys.PROJECT.getData(DataManager.getInstance().getDataContext(button)); if (project == null) { return allActionsGroup; } AnAction editRunConfigurationAction = getEditRunConfigurationAction(); if(editRunConfigurationAction != null) { allActionsGroup.add(editRunConfigurationAction); } allActionsGroup.add(new SaveTemporaryAction()); allActionsGroup.addSeparator(); if (!ExperimentalUI.isNewUI()) { // no need for targets list in `All configurations` in new UI, since there is a separate combobox for them addTargetGroup(project, allActionsGroup); } allActionsGroup.add(new RunCurrentFileAction(executor -> true)); allActionsGroup.addSeparator(ExecutionBundle.message("run.configurations.popup.existing.configurations.separator.text")); addRunConfigurations(allActionsGroup, project, settings -> createFinalAction(settings, project), folderName -> DefaultActionGroup.createPopupGroup(() -> folderName), null); return allActionsGroup; }