// WITH_RUNTIME // INTENTION_TEXT: "Replace with 'filterNot{}.mapIndexed{}.firstOrNull{}'" // INTENTION_TEXT_2: "Replace with 'asSequence().filterNot{}.mapIndexed{}.firstOrNull{}'" fun foo(list: List): Int? { return list .filterNot { it.isBlank() } .mapIndexed { index, s -> s.length * (index + 1) } .firstOrNull { it > 0 } }