PreferInstanceofOverGetKind
Prefer instanceof over getKind() checks where possible, as these work well with pattern matching instanceofs
Suppression
Suppress false positives by adding the suppression annotation @SuppressWarnings("PreferInstanceofOverGetKind")
to the enclosing element.