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

Severity
WARNING

Suppression

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