The inspection detects calls to Kotlin standard library functions filterIsInstance/filterIsInstanceTo, whose target type is not a subtype of the element type the filtering is called on.

Example:


    val list = listOf<Int>(1, 2, 3)
    val filteredList = list.filterIsInstance<Boolean>() // Empty result