protected @NotNull List<AnAction> getDefaultChildren(@Nullable Predicate<? super Executor> executorFilter) {
      // The secondary menu for the existing run configurations is not directly related to the 'Run Current File' feature.
      // We may reconsider changing this to `if (!RunManager.getInstance(project).isRunWidgetActive()) { addSubActions(); }`
      if (!hasRunSubActions(myProject)) return Collections.emptyList();

      List<AnAction> result = new ArrayList<>();
      // Add actions similar to com.intellij.execution.actions.ChooseRunConfigurationPopup.ConfigurationActionsStep#buildActions
      forAllExecutors(o -> {
        if (executorFilter == null || executorFilter.test(o)) {
          result.add(new RunSpecifiedConfigExecutorAction(o, myConfiguration, false));
        }
      });
      result.add(Separator.create(ExperimentalUI.isNewUI() ? ExecutionBundle.message("choose.run.popup.separator") : null));

      if (!ExperimentalUI.isNewUI()) {
        Executor runExecutor = DefaultRunExecutor.getRunExecutorInstance();
        result.add(new RunSpecifiedConfigExecutorAction(runExecutor, myConfiguration, true));
      }
      else {
        // TODO - when the Old UI is removed from the platform at all, do the following:
        //   1) remove this line
        //   2) include the action with id `IdeActions.ACTION_EDIT_RUN_CONFIGURATIONS`
        //      into the action group with id `RunConfigurationsComboBoxAction.RUN_CONFIGURATION_GROUP_ID`
        //      in xml-file where the action group is declared
        result.add(ActionManager.getInstance().getAction(IdeActions.ACTION_EDIT_RUN_CONFIGURATIONS));
      }

      result.add(ActionManager.getInstance().getAction(RUN_CONFIGURATION_GROUP_ID));

      return result;
    }
protected @NotNull List<AnAction> getDefaultChildren(@Nullable Predicate<? super Executor> executorFilter)