docs: private static Collection<AnnotationValue> getDirectAnnotation(XMethod m, int parameter) {
          HashMap<XMethod, Map<Integer, Collection<AnnotationValue>>> directParameterAnnotations = getDirectParameterAnnotations();
          Map<Integer, Collection<AnnotationValue>> map = directParameterAnnotations.get(m);
          if (map == null) {
              int n = m.getNumParams();
              if (m.isVarArgs())
              {
                  n--; // ignore annotations on varargs parameters
              }
              map = new HashMap<>(n + 2);
              for (int i = 0; i < n; i++) {
                  Collection<AnnotationValue> a = TypeQualifierResolver.resolveTypeQualifiers(m.getParameterAnnotations(i));
                  if (!a.isEmpty()) {
                      map.put(i, a);
                  }
              }
              if (map.isEmpty()) {
                  map = Collections.emptyMap();
              }
              directParameterAnnotations.put(m, map);
          }
  
          Collection<AnnotationValue> result = map.get(parameter);
          if (result != null) {
              return result;
          }
          return Collections.emptyList();
      }