I have a third party Java library which an object with interface like this:
public interface Handler { void call(C context) throws Exception; } >
val obj = object : MyInterface { override fun function1(arg:Int) { ... } override fun function12(arg:Int,arg:Int) { ... } }