Period.from(Period) returns itself; from(Duration) throws a runtime exception.

See: https://errorprone.info/bugpattern/PeriodFrom