public static boolean isAnnotationPresent(Element element,
                                              Class<? extends Annotation> annotationClass) {
        return getAnnotationMirror(element, annotationClass).isPresent();
    }
Static utility methods pertaining to {@link Element} instances.

@author Gregory Kick
android/annotation_processors/xposed_hook_compiler/src/main/java/github/tornaco/permission/compiler/common/MoreElements.java