void (@NotNull ActionManager actionManager, @NotNull String actionId, @NotNull AnAction anAction, @NotNull String groupId, @NotNull Map<String, AnAction> map) { AnAction action = registerAction(actionManager, actionId, anAction, map); AnAction group = actionManager.getAction(groupId); if (group != null) { ((ActionManagerImpl) actionManager).addToGroup((DefaultActionGroup) group, action, Constraints.LAST); } }