GROOVY-7056 make stub generator aware of AnnotationCollector