boolean (Condition<? super AnAction> condition, KeymapGroup keymapGroup) { final EmptyAction emptyAction = new EmptyAction(); if (condition != null && !condition.value(emptyAction) && keymapGroup instanceof Group group) { return group.getSize() > 1 || condition.value(new EmptyAction(group.getName(), null, null)); } return true; }