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