void (@NotNull Notification notification, @NotNull HyperlinkEvent e) { Project project = myProjectRef.get(); boolean useBuildToolwindow = useBuildToolWindow(); String toolWindowId = useBuildToolwindow ? BuildContentManager.TOOL_WINDOW_ID : ToolWindowId.MESSAGES_WINDOW; if (project != null && !project.isDisposed() && (useBuildToolwindow || CompilerMessagesService.showCompilerContent(project, myContentId))) { ToolWindow toolWindow = ToolWindowManager.getInstance(project).getToolWindow(toolWindowId); if (toolWindow != null) { toolWindow.activate(null, false); } } else { notification.expire(); } }