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