public AnnotationMetadata getAnnotation(final JavaType type) { Validate.notNull(type, "Annotation type to locate required"); for (final MemberHoldingTypeDetails memberHoldingTypeDetails : details) { final AnnotationMetadata md = memberHoldingTypeDetails.getAnnotation(type); if (md != null) { return md; } } return null; }