static void tabShown(@NotNull ProblemsViewTab tab) {
    if (tab instanceof ProblemsViewPanel panel) {
      TAB_SHOWN.log(panel.getProject(),
                    TAB_NAME.with(tabName(panel)),
                    PROBLEMS_COUNT.with(problemsCount(panel)),
                    PREVIEW_ENABLED.with(previewEnabled(panel)));
    }
    else if (tab instanceof ProblemsViewTabWithMetrics panel) {
      TAB_SHOWN.log(panel.getProject(),
                    TAB_NAME.with(panel.getUsagesTabId()),
                    PROBLEMS_COUNT.with(panel.getShownProblemsCount()),
                    PREVIEW_ENABLED.with(false));
    }
  }
static void tabShown(@NotNull ProblemsViewTab tab)