docs: public Period withPeriodType(PeriodType type) {
          type = DateTimeUtils.getPeriodType(type);
          if (type.equals(getPeriodType())) {
              return this;
          }
          return new Period(this, type);
      }