void (@NotNull T tool, @NotNull DefaultActionGroup group) { String id = tool.getActionId(); AnAction action = ActionManager.getInstance().getAction(id); if (action == null) { action = createToolAction(tool); ActionManager.getInstance().registerAction(id, action); } group.add(action); }