private boolean hasRelevantAnnotation(Element element) {
        for (Class<? extends Annotation> annotation : annotations) {
            if (element.getAnnotation(annotation) != null) {
                return true;
            }
        }
        return false;
    }
Configuration for {@link JPAAnnotationProcessor}

@author tiwe
@see JPAAnnotationProcessor
querydsl-apt/src/main/java/com/querydsl/apt/jpa/JPAConfiguration.java