`[foo: {-> doFooThings() }].withDefault { {-&gt...
# gradle
b
[foo: {-> doFooThings() }].withDefault { {->} } as MyInterface
does the trick ­čÖé