// 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 = ArrayList(100) for (s in list) { if (s.length > 0) target.add(s.hashCode()) } return target }