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