Is it possible to make a root-level-function only accesible from a certain DSL-scope?
If not, I propose an Idea to add a name in the DSL-annotation.
Then use an annotation on the root-level-method, like MarkedFor.
In that way, it would possible to add extension-functions to a limited scope of a library.
(at this moment, all those functions need to be declared on an interface).