public static @NotNull Group createMainGroup(@Nullable Project project,
                                               @Nullable Keymap keymap,
                                               QuickList @NotNull [] quickLists,
                                               @Nullable String filter,
                                               boolean forceFiltering,
                                               @Nullable Condition<? super AnAction> filtered) {
    Condition<AnAction> wrappedFilter = wrapFilter(filtered, keymap);
    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;
  }
public static @NotNull Group createMainGroup(@Nullable Project project,
                                               @Nullable Keymap keymap,
                                               QuickList @NotNull [] quickLists,
                                               @Nullable String filter,
                                               boolean forceFiltering,
                                               @Nullable Condition<? super AnAction> filtered)