methodCall( object : SampleInterface { overridden...
# intellij
o
methodCall( object : SampleInterface { overriddenMethod1() {} overriddenMethod2() {} }) in java, an anonymous instance stub is created for you on autocomplete + enter similarly, val l: List<String> = ... in java, defining List<String> l = new ... the autocomplete will suggest a new anonymous instance and create it for you if you hit enter