static void tabHidden(@NotNull ProblemsViewTab tab, long nano) {
    if (tab instanceof ProblemsViewPanel panel) {
      TAB_HIDDEN.log(panel.getProject(),
                     TAB_NAME.with(tabName(panel)),
                     PROBLEMS_COUNT.with(problemsCount(panel)),
                     PREVIEW_ENABLED.with(previewEnabled(panel)),
                     DURATION.with(TimeUnit.NANOSECONDS.toSeconds(nano)));
    }
    else if (tab instanceof ProblemsViewTabWithMetrics panel) {
      TAB_HIDDEN.log(panel.getProject(),
                     TAB_NAME.with(panel.getUsagesTabId()),
                     PROBLEMS_COUNT.with(panel.getShownProblemsCount()),
                     PREVIEW_ENABLED.with(false),
                     DURATION.with(TimeUnit.NANOSECONDS.toSeconds(nano)));
    }
  }
static void tabHidden(@NotNull ProblemsViewTab tab, long nano)