// WITH_RUNTIME // INTENTION_TEXT: "Replace with 'mapIndexedNotNull{}.mapTo(){}'" // INTENTION_TEXT_2: "Replace with 'asSequence().mapIndexedNotNull{}.mapTo(){}'" fun foo(list: List, target: MutableList) { list .mapIndexedNotNull { index, s -> s?.substring(index)?.length } .mapTo(target) { it.toString() } }