fun notNullValues(collection: MutableCollection) { collection.removeIf { it.length > 5 } // SUCCESS // ORIGINAL: fun removeIf(Predicate): Boolean defined in kotlin.collections.MutableCollection // SUBSTITUTED: fun removeIf(Predicate): Boolean defined in kotlin.collections.MutableCollection } fun nullableValues(collection: MutableCollection) { collection.removeIf { it != null && it.length > 5 } // SUCCESS // ORIGINAL: fun removeIf(Predicate): Boolean defined in kotlin.collections.MutableCollection // SUBSTITUTED: fun removeIf(Predicate): Boolean defined in kotlin.collections.MutableCollection } fun nullableValues2(collection: MutableCollection) { collection.removeIf { it == null } // SUCCESS // ORIGINAL: fun removeIf(Predicate): Boolean defined in kotlin.collections.MutableCollection // SUBSTITUTED: fun removeIf(Predicate): Boolean defined in kotlin.collections.MutableCollection }