void (Project project, String id) { Content content = ProblemsViewToolWindowUtils.INSTANCE.getContentById(project, id); ToolWindow toolWindow = ProblemsViewToolWindowUtils.INSTANCE.getToolWindow(project); if (content == null || toolWindow == null) { return; } toolWindow.getContentManager().removeContent(content, true); }