code: private static Collection<TypeQualifierAnnotation> getApplicableScopedApplications(AnnotatedObject o, ElementType e) {
          Set<TypeQualifierAnnotation> result = new HashSet<>();
          getApplicableScopedApplications(result, o, e);
          return result;
      }
docs: Get the collection of resolved TypeQualifierAnnotations for a given
  AnnotatedObject, taking into account annotations applied to outer scopes
  (e.g., enclosing classes and packages.)
  
  @param o
  an AnnotatedObject
  @param e
  ElementType representing kind of AnnotatedObject
  @return Collection of resolved TypeQualifierAnnotations