// "Create function 'get'" "true" import java.util.ArrayList class Foo { fun bar(arg: String) { } fun x (y: Foo>, w: ArrayList) { val z = y["", w] bar(z) } private fun get(s: String, w: ArrayList): String { throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. } }