hello @nielsbasjes,
indeed this looks like false positive, because engine is not aware about behavior of isInstance
method (it would work with instanceof
operator). I created ticket to handle it https://jira.sonarsource.com/browse/SONARJAVA-3187