public static void addPanel(@NotNull Project project, @NotNull ProblemsViewPanelProvider provider) {
    ToolWindow window = getToolWindow(project);
    assert window != null;
    ContentManager manager = window.getContentManager();
    ProblemsViewTab panel = provider.create();
    if (panel == null) {
      return;
    }
    createContent(manager, panel);
  }
public static void addPanel(@NotNull Project project, @NotNull ProblemsViewPanelProvider provider)