code: public static void getDirectApplications(Set<TypeQualifierAnnotation> result, AnnotatedObject o, ElementType e) {
          if (!o.getElementType().equals(e)) {
              return;
          }
          Collection<AnnotationValue> values = getDirectAnnotation(o);
          for (AnnotationValue v : values) {
              constructTypeQualifierAnnotation(result, v);
          }
  
      }
docs: Populate a Set of TypeQualifierAnnotations representing directly-applied
  type qualifier annotations on given AnnotatedObject.
  
  @param result
  Set of TypeQualifierAnnotations
  @param o
  an AnnotatedObject
  @param e
  ElementType representing kind of annotated object