internal class A { var list: List? = null fun foo() { for (e in list!!) { println(e) } } }