void (@NotNull Project project) { ThreadingAssertions.assertEventDispatchThread(); // avoid leak through com.intellij.codeInsight.hint.TooltipController.myCurrentTooltip TooltipController.getInstance().cancelTooltips(); ApplicationManager.getApplication().invokeLater(() -> hideHints(0, false, false)); for (ClientHintManager instance : ClientHintManager.getAllInstances()) { instance.onProjectClosed(project); } }