// WITH_RUNTIME // INTENTION_TEXT: "Replace with 'firstOrNull{}'" // IS_APPLICABLE_2: false fun getFirstValue() = "value" fun foo(list: List): String? { var found: String? = null val value = getFirstValue() for (s in list) if (s != null) if(!s.startsWith("IMG:")) if (s.contains(value)) { found = s break } return found }