void (final @NotNull Project project, final @NotNull RunContentDescriptor descriptor) { ApplicationManager.getApplication().invokeLater(() -> { RunContentManager manager = RunContentManager.getInstance(project); ToolWindow toolWindow = manager.getToolWindowByDescriptor(descriptor); if (toolWindow != null) { toolWindow.show(null); manager.selectRunContent(descriptor); } }, project.getDisposed()); }