// WITH_RUNTIME // INTENTION_TEXT: "Replace with 'filter{}.mapTo(){}'" // INTENTION_TEXT_2: "Replace with 'asSequence().filter{}.mapTo(){}'" fun foo(list: List): List { val target = createCollection() list .filter { it.length > 0 } .mapTo(target) { it.hashCode() } return target } fun createCollection(): MutableList = java.util.ArrayList()