Period.(plus|minus)(TemporalAmount) will always throw a DateTimeException when passed a Duration.
Suppress false positives by adding the suppression annotation @SuppressWarnings("PeriodTimeMath") to the enclosing element.
@SuppressWarnings("PeriodTimeMath")