[rev=Peter] IDEA-106908 Groovy's @DelegatesTo annotation is not respected if it is on a Java class
(cherry picked from commit 28e1707)