GROOVY-6786 fix wrong generics handling by @Override