GROOVY-6455: remove generics information to fix static compilation