code: public static <T extends Annotation> boolean isAnnotationPresent( Class<T> annotation, List<? extends HasAnnotations>
              hasAnnotationsList ) {
          for ( HasAnnotations accessor : hasAnnotationsList ) {
              if ( accessor.isAnnotationPresent( annotation ) ) {
                  return true;
              }
          }
          return false;
      }
docs: Returns true when one of the type  has the specified annotation
  
  @param annotation the annotation
  @param hasAnnotationsList the types
  @return true if one the type has the annotation
  @param <T> a T object.