class Test { fun interface Foo { fun foo() } fun uiMethod() {} fun test(foo: Foo) {} fun testLambda() { test { uiMethod() } } }