InstanceOfAndCastMatchWrongType
Casting inside an if block should be plausibly consistent with the instanceof type

Severity
WARNING

Suppression

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