Group (final Condition<? super AnAction> filtered, final String filter, final boolean forceFiltering, final QuickList[] quickLists) { Arrays.sort(quickLists, Comparator.comparing(QuickList::getActionId)); Group group = new Group(KeyMapBundle.message("quick.lists.group.title")); for (QuickList quickList : quickLists) { if (filtered != null && filtered.value(ActionManagerEx.getInstanceEx().getAction(quickList.getActionId())) || SearchUtil.isComponentHighlighted(quickList.getName(), filter, forceFiltering, null) || filtered == null && StringUtil.isEmpty(filter)) { group.addQuickList(quickList); } } return group; }