I have a simple interface written in java with only one method. Now in Kotlin I have a method that should return implementation of this Interface. In java I would return an anonymous class implementing this Interface. But in Kotlin we have lambda expressions. So i tried like this: return MyJavaInterface { ... } but the IDE says that it does not have invoke() method so this code is illegal. What am I doing wrong?