void (@NotNull ToolWindow toolWindow) { AnAction action = ActionManager.getInstance().getAction(getActionIdForToolWindow(toolWindow.getId())); if (action instanceof ActivateToolWindowAction) { updatePresentation(action.getTemplatePresentation(), toolWindow); } }