private static String someTimeAgoMessage(Period period, int n) {
    return switch (period) {
      case DAY -> UtilBundle.message("date.format.n.days.ago", n);
      case MINUTE -> UtilBundle.message("date.format.n.minutes.ago", n);
      case HOUR -> UtilBundle.message("date.format.n.hours.ago", n);
      case MONTH -> UtilBundle.message("date.format.n.months.ago", n);
      case WEEK -> UtilBundle.message("date.format.n.weeks.ago", n);
      default -> UtilBundle.message("date.format.n.years.ago", n);
    };
  }
private static String someTimeAgoMessage(Period period, int n)