void (@NotNull AnActionEvent event, boolean flag) { Project project = event.getProject(); if (project == null) { return; } String id = ToolWindowManager.getInstance(project).getActiveToolWindowId(); if (id == null) { return; } ToolWindow toolWindow = ToolWindowManager.getInstance(project).getToolWindow(id); if (ToolWindowType.FLOATING == toolWindow.getType()) { toolWindow.setType(((ToolWindowEx)toolWindow).getInternalType(), null); } else { toolWindow.setType(ToolWindowType.FLOATING, null); } }