the CUBA IDEA IntelliJ integration allows for controllers to “Generate” > “Inject” certain elements from the XML descriptor etc. Unfortunately for groovy files it is not possible.
Could you add the Groovy file extension for it? That would be great, because it is another time saver…