TemporalAccessor.get(ChronoField) only works for certain values of ChronoField. E.g., DayOfWeek only supports DAY_OF_WEEK. All other values are guaranteed to throw an UnsupportedTemporalTypeException.
Suppress false positives by adding the suppression annotation @SuppressWarnings("TemporalAccessorGetChronoField")
to the enclosing element.