When calling Java code from Kotlin, there is SAM conversion so that Java code like this: Can look like this: Now, I’m working on a Kotlin project and I want to define a functional interface as an event listener: In SomeClass I have a function to set the listener: And when I create an instance of this class and try