*/
private void checkAnnotations(Doc doc, AnnotationDesc[] annotations) {
for (int i=0; i < annotations.length; i++) {
AnnotationDesc annotationDesc = annotations[i];
boolean isDocumented = false;
for (AnnotationDesc a : annotationDesc.annotationType().annotations()) {
if (java.lang.annotation.Documented.class.getName().equals(a.annotationType().qualifiedName())) {
isDocumented = true;
}
}
checkReference(doc, annotations[i], isDocumented ? WARNING_ANNOTATION : WARNING_PRIVATE_ANNOTATION);