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