Kotlin actually generates “fake” extension method ...
# intellij
o
Kotlin actually generates “fake” extension method for Java methods with SAM-type parameters. It is handled specially in the backend, so it’s not emitted into .class files, but instead generated inline. Here IDE gets a little bit fooled by compiler’s frontend. This no longer the case in 1.1, because such “fake” methods are generated as if member functions.