// WITH_RUNTIME // INTENTION_TEXT: "Replace with 'map{}.map{}.filterTo(){}'" // INTENTION_TEXT_2: "Replace with 'asSequence().map{}.map{}.filterTo(){}'" fun foo(list: List, o: Any, result: MutableCollection) { if (o is CharSequence) { list .map { it.length + (o as String).capitalize().hashCode() } .map { it * o.length } .filterTo(result) { it > 1000 } } }