fun notNullValues(list: MutableList) { list.replaceAll { it.length.toString() } // SUCCESS // ORIGINAL: fun replaceAll(UnaryOperator): Unit defined in kotlin.collections.MutableList // SUBSTITUTED: fun replaceAll(UnaryOperator): Unit defined in kotlin.collections.MutableList } fun nullableValues(list: MutableList) { list.replaceAll { it?.run { length.toString() } } // SUCCESS // ORIGINAL: fun replaceAll(UnaryOperator): Unit defined in kotlin.collections.MutableList // SUBSTITUTED: fun replaceAll(UnaryOperator): Unit defined in kotlin.collections.MutableList }