Group (Condition<? super AnAction> filtered) { final ActionManagerEx actionManager = ActionManagerEx.getInstanceEx(); List<String> ids = actionManager.getActionIdList(ActionMacro.MACRO_ACTION_PREFIX); ids.sort(null); Group group = new Group(KeyMapBundle.message("macros.group.title"), null, (Supplier<? extends Icon>)null); for (String id : ids) { if (filtered == null || filtered.value(actionManager.getActionOrStub(id))) { group.addActionId(id); } } return group; }