void (@NotNull InspectionResultsView view, @NotNull @NlsContexts.TabTitle String title, boolean isOffline) { LOG.assertTrue(myContent == null, "GlobalInspectionContext is busy under other view now"); myView = view; if (!isOffline) { myView.setUpdating(true); } myContent = ContentFactory.getInstance().createContent(view, title, false); myContent.setHelpId(InspectionResultsView.HELP_ID); myContent.setDisposer(myView); Disposer.register(myContent, () -> { if (myView != null) { close(false); } myContent = null; }); RefManagerImpl.EP_NAME.addExtensionPointListener(new ExtensionPointListener<>() { @Override public void extensionRemoved(@NotNull RefGraphAnnotator graphAnnotator, @NotNull PluginDescriptor pluginDescriptor) { ((RefManagerImpl)getRefManager()).unregisterAnnotator(graphAnnotator); } }, myContent); ContentManager contentManager = getContentManager(); contentManager.addContent(myContent); contentManager.setSelectedContent(myContent); ToolWindowManager toolWindowManager = ToolWindowManager.getInstance(getProject()); ToolWindow toolWindow = toolWindowManager.getToolWindow(ProblemsView.ID); if (toolWindow == null) { // TODO: compatibility mode for Rider where there's no problems view; remove in 2021.2 toolWindow = toolWindowManager.getToolWindow(ToolWindowId.INSPECTION); } if (toolWindow != null) { view.initAdditionalGearActions(toolWindow); toolWindow.activate(null); } }