void (MouseEvent e) { if (SwingUtilities.isLeftMouseButton(e) && e.getClickCount() == 2) { if (ui.tabsLayout.doubleClickActions.isEmpty() || !(e.getComponent() instanceof ContentTabLabel)) { ToolWindowManagerEx manager = ui.window.getToolWindowManager(); manager.setMaximized(ui.window, !manager.isMaximized(ui.window)); } } }