public void addAnnotations(AnnotatedElement element) {
        for (Annotation annotation : element.getAnnotations()) {
            annotations.put(annotation.annotationType(), annotation);
        }
    }
Annotations is a merging adapter for the {@link AnnotatedElement} interface

@author tiwe
querydsl-core/src/main/java/com/querydsl/core/util/Annotations.java