@Override
  protected @NotNull DefaultActionGroup createPopupActionGroup(@NotNull JComponent button, @NotNull DataContext context) {
    DefaultActionGroup result = new DefaultActionGroup();
    Project project = CommonDataKeys.PROJECT.getData(DataManager.getInstance().getDataContext(button));
    if (project == null) {
      return result;
    }

    AnAction editRunConfigurationAction = getEditRunConfigurationAction();
    if (editRunConfigurationAction != null) {
      result.add(editRunConfigurationAction);
    }
    result.add(new SaveTemporaryAction());
    result.addSeparator();


    if (!ExperimentalUI.isNewUI()) {
      // no need for the target list in `All configurations` in new UI, since there is a separate combobox for them
      addTargetGroup(project, result);
    }

    result.add(new RunCurrentFileAction());
    result.addSeparator(ExecutionBundle.message("run.configurations.popup.existing.configurations.separator.text"));

    Map<ConfigurationType, Map<String, List<RunnerAndConfigurationSettings>>> configurationMap =
      RunManagerImpl.getInstanceImpl(project).getConfigurationsGroupedByTypeAndFolder(true);
    result.add(createRunConfigurationFolderActions(project, configurationMap.values()));
    return result;
  }
@Override
  protected @NotNull DefaultActionGroup createPopupActionGroup(@NotNull JComponent button, @NotNull DataContext context)