public void addView(
    @NotNull InspectionResultsView view,
    @NotNull @NlsContexts.TabTitle String title,
    boolean isOffline
  ) {
    if (myContent != null) {
      LOG.error("GlobalInspectionContext is busy under other view: " + myContent.getDisplayName());
    }
    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) {
      view.initAdditionalGearActions(toolWindow);
      toolWindow.activate(null);
    }
  }
public void addView(
    @NotNull InspectionResultsView view,
    @NotNull @NlsContexts.TabTitle String title,
    boolean isOffline
  )