Group (@NlsActions.ActionText String name, String[] pluginActions, Condition<? super AnAction> filtered) { ActionManagerEx actionManager = ActionManagerEx.getInstanceEx(); Group pluginGroup = new Group(name, null); Arrays.sort(pluginActions, Comparator.comparing(ActionsTreeUtil::getTextToCompare)); for (String actionId : pluginActions) { AnAction action = actionManager.getActionOrStub(actionId); if (isNonExecutableActionGroup(actionId, action)) { continue; } if (filtered == null || filtered.value(action)) { pluginGroup.addActionId(actionId); } } return pluginGroup; }