// WITH_RUNTIME // INTENTION_TEXT: "Replace with '+= takeWhile{}'" // INTENTION_TEXT_2: "Replace with '+= asSequence().takeWhile{}'" fun foo(list: List, target: MutableCollection) { target += list .asSequence() .takeWhile { !it.isEmpty() } }