// WITH_RUNTIME // INTENTION_TEXT: "Replace with 'flatMap{}.firstOrNull{}'" // INTENTION_TEXT_2: "Replace with 'asSequence().flatMap{}.firstOrNull{}'" fun foo(list: List): String? { var result: String? = null MainLoop@ for (s in list) { for (line in s.lines()) { if (line.isNotBlank()) { result = line break@MainLoop } } } return result }