KeymapGroup (final Condition<? super AnAction> filtered, final Project project) { KeymapGroup result = KeymapGroupFactory.getInstance().createGroup(KeyMapBundle.message("version.control.group.title")); AnAction[] versionControlsGroups = ActionsTreeUtil.getActions("VcsGroup"); AnAction[] keymapGroups = ActionsTreeUtil.getActions("Vcs.KeymapGroup"); for (AnAction action : ContainerUtil.concat(versionControlsGroups, keymapGroups)) { ActionsTreeUtil.addAction(result, action, filtered, false); } AnAction[] generalActions = ActionsTreeUtil.getActions("VcsGeneral.KeymapGroup"); for (AnAction action : generalActions) { ActionsTreeUtil.addAction(result, action, filtered, true); } if (result instanceof Group) { ((Group)result).normalizeSeparators(); } return result; }