void (@NotNull Project project) { StartupManager.getInstance(project).runAfterOpened(() -> { if (ProjectView.getInstance(project).getCurrentProjectViewPane() != null) { showTooltip(project); return; } project.getMessageBus().connect().subscribe(ToolWindowManagerListener.TOPIC, new ToolWindowManagerListener() { @Override public void toolWindowShown(@NotNull ToolWindow toolWindow) { if (!"Project".equals(toolWindow.getId())) return; showTooltip(project); } }); }); }