private static @NotNull MeasureUnit convert(@NotNull TimeUnit timeUnit) {
    return switch (timeUnit) {
      case NANOSECONDS -> MeasureUnit.NANOSECOND;
      case MICROSECONDS -> MeasureUnit.MICROSECOND;
      case MILLISECONDS -> MeasureUnit.MILLISECOND;
      case SECONDS -> MeasureUnit.SECOND;
      case MINUTES -> MeasureUnit.MINUTE;
      case HOURS -> MeasureUnit.HOUR;
      case DAYS -> MeasureUnit.DAY;
    };
  }
private static @NotNull MeasureUnit convert(@NotNull TimeUnit timeUnit)