void (AnnotationHolder holder, GrTypeDefinition definition) { if (definition.isAnnotationType() && GrAnnotationCollector.findAnnotationCollector(definition) != null && definition.getCodeMethods().length > 0) { holder.newAnnotation(HighlightSeverity.ERROR, GroovyBundle.message("annotation.collector.cannot.have.attributes")).range(definition.getNameIdentifierGroovy()).create(); } }