public void addAnnotation(@Nullable Annotation annotation) {
        if (annotation != null) {
            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