I have a function like that: fun ConfigurationManager.getXConfig(): List<Resource> {}
I would like to be able to do: fun ConfigurationManager.getXConfig(): XConfigs {}
so I can write extension functions such as Xconfigs.names (that would be a simple fun XConfigs.names: get() = this.map { it: Resource -> it.name }