Group (final Project project, final Keymap keymap, final QuickList[] quickLists, final String filter, final boolean forceFiltering, final Condition<? super AnAction> filtered) { final Condition<AnAction> wrappedFilter = wrapFilter(filtered, keymap, ActionManager.getInstance()); Group mainGroup = new Group(KeyMapBundle.message("all.actions.group.title")); mainGroup.addGroup(createEditorActionsGroup(wrappedFilter)); mainGroup.addGroup(createMainMenuGroup(wrappedFilter)); for (KeymapExtension extension : KeymapExtension.EXTENSION_POINT_NAME.getExtensionList()) { final Group group = createExtensionGroup(wrappedFilter, project, extension); if (group != null) { mainGroup.addGroup(group); } } mainGroup.addGroup(createMacrosGroup(wrappedFilter)); mainGroup.addGroup(createIntentionsGroup(wrappedFilter)); mainGroup.addGroup(createQuickListsGroup(wrappedFilter, filter, forceFiltering, quickLists)); mainGroup.addGroup(createPluginsActionsGroup(wrappedFilter)); mainGroup.addGroup(createOtherGroup(wrappedFilter, mainGroup, keymap)); if (!StringUtil.isEmpty(filter) || filtered != null) { final ArrayList<Object> list = mainGroup.getChildren(); for (Iterator<Object> i = list.iterator(); i.hasNext(); ) { final Object o = i.next(); if (o instanceof Group group) { if (group.getSize() == 0) { if (!SearchUtil.isComponentHighlighted(group.getName(), filter, forceFiltering, null)) { i.remove(); } } } } } return mainGroup; }