private static void createContent(@NotNull ContentManager manager, @NotNull ProblemsViewTab panel) {
    if (!(panel instanceof JComponent component)) {
      throw new IllegalArgumentException("panel " + panel.getClass()+ " is not a JComponent");
    }

    Content content = manager.getFactory().createContent(component, panel.getName(0), false);
    content.setCloseable(false);
    panel.customizeTabContent(content);
    manager.addContent(content);
  }
private static void createContent(@NotNull ContentManager manager, @NotNull ProblemsViewTab panel)