// "Create function 'foo'" "true" fun test(o: Any) { if (o is String) foo(o) } fun foo(o: String) { throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. }