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

Severity
WARNING

Suppression

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