Redundant 'isInstance()' or 'cast()' call
Reports redundant calls of
Xyz.class.isInstance(object) can be replaced with
object instanceof Xyz. The instanceof check is preferred: even though the performance will probably be the same as these methods are intrinsics, they better indicate a static check.
New in 2018.2
IntelliJ IDEA 2023.3, Qodana for JVM 2023.3