void (@NotNull AnActionEvent e) { Project project = e.getProject(); if (project == null) { return; } ToolWindowManagerImpl manager = (ToolWindowManagerImpl)ToolWindowManager.getInstance(project); String id = manager.getLastActiveToolWindowId(); if (id == null || !manager.getToolWindow(id).isAvailable()) { return; } manager.activateToolWindow(id, null, true, ToolWindowEventSource.JumpToLastWindowAction); }