OptionalMapUnusedValue
Optional.ifPresent is preferred over Optional.map when the return value is unused

Severity
ERROR

Suppression

Suppress false positives by adding the suppression annotation @SuppressWarnings("OptionalMapUnusedValue") to the enclosing element.