// "Create member function 'SomeObj.doSomething'" "true" class SomeObj { fun doSomething() { TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } fun doSomething(p: Any): List{ if (p is SomeObj){ p.doSomething() } return emptyList() }