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