void (@NotNull AnActionEvent e) { if (!isInitialized) { ActionManager actionManager = ActionManager.getInstance(); for (ToolWindowViewModeAction.ViewMode viewMode : ToolWindowViewModeAction.ViewMode.values()) { ToolWindowViewModeAction action = new ToolWindowViewModeAction(viewMode); AnAction template = actionManager.getAction(viewMode.getActionID()); if (template != null) { action.copyShortcutFrom(template); } add(action); } isInitialized = true; } super.update(e); }