PatternMatchingInstanceof
This code can be simplified to use a pattern-matching instanceof.

Severity
WARNING

Suppression

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