interface A { fun String.foo() } class B : A { override fun String.foo() { TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } }