// WITH_RUNTIME // INTENTION_TEXT: "Replace with 'mapIndexedNotNullTo(){}'" // IS_APPLICABLE_2: false fun foo(list: List, target: MutableList) { for ((index, s) in list.withIndex()) { val length = s?.substring(index)?.length if (length == null) continue target.add(length) } }