OptionalMapToOptional
Mapping to another Optional will yield a nested Optional. Did you mean flatMap?

Severity
WARNING
Has Fix?
REQUIRES_HUMAN_ATTENTION

The problem

Suppression

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