public static boolean hasAnnotationOfType(Element element, Set<Class<? extends Annotation>> annotations) {
        for (Class<? extends Annotation> annotation : annotations) {
            if (hasAnnotationOfType(element, annotation)) {
                return true;
            }
        }
        return false;
    }
Various utility classes for {@link Element} and {@link AnnotationMirror} handling

@author tiwe
querydsl-apt/src/main/java/com/querydsl/apt/TypeUtils.java