void (@NotNull AnActionEvent e) { Project project = e.getRequiredData(CommonDataKeys.PROJECT); ToolWindow toolWindow = ToolWindowManager.getInstance(project).getToolWindow(ID); if (toolWindow != null) toolWindow.remove(); }