GROOVY-4941: Static methods cannot be called during AST transformation v...

...ia AstBuilder.buildFromSpec()