code: public final boolean hasAnnotation(final String name) {
          if (name == null) {
              throw new IllegalArgumentException("The argument 'name' cannot be NULL!");
          }
          for (int i = 0; i < annotations.size(); i++) {
              final SgAnnotation annotation = annotations.get(i);
              if (annotation.getName().equals(name)) {
                  return true;
              }
          }
          return false;
      }
docs: Checks if a given annotation is in the list.
  
  @param name
  Name of the annotation to find - Cannot be null.
  
  @return If it's found true else false.