List<CommitExecutorAction> (@NotNull List<? extends CommitExecutor> executors) { if (executors.isEmpty()) return emptyList(); List<CommitExecutorAction> result = new ArrayList<>(); if (isDefaultCommitEnabled() && UISettings.getInstance().getAllowMergeButtons()) { ActionGroup primaryActions = (ActionGroup)ActionManager.getInstance().getAction(VcsActions.PRIMARY_COMMIT_EXECUTORS_GROUP); ActionGroup executorActions = (ActionGroup)ActionManager.getInstance().getAction(VcsActions.COMMIT_EXECUTORS_GROUP); result.addAll(map(primaryActions.getChildren(null), CommitExecutorAction::new)); result.addAll(map(executorActions.getChildren(null), CommitExecutorAction::new)); result.addAll(map(filter(executors, CommitExecutor::useDefaultAction), CommitExecutorAction::new)); } else { result.addAll(map(executors, CommitExecutorAction::new)); } return result; }