void (final Project project, final MessageType type, final @NlsContexts.PopupContent String text, final @Nullable HyperlinkListener listener) { ApplicationManager.getApplication().invokeLater(() -> { if (project.isDisposed()) return; if (ToolWindowManager.getInstance(project).getToolWindow(myToolWindowId) != null) { ToolWindowManager.getInstance(project).notifyByBalloon(myToolWindowId, type, text, null, listener); } }); }