code: public static boolean isAnnotationPresent(Class<?> clazz, Class<? extends Annotation> annotation) {
        return getAnnotation(clazz, annotation) != null;
     }
docs: Tests whether an annotation is present on a class.  The order tested is: <ul> <li>The class itself</li> <li>All
  implemented interfaces</li> <li>Any superclasses</li> </ul>
  
  @param clazz      class to test
  @param annotation annotation to look for
  @return true if the annotation is found, false otherwise