docs: private ClassInfoList getFieldOrMethodAnnotations(final RelType relType) {
          final boolean isField = relType == RelType.FIELD_ANNOTATIONS;
          if (!(isField ? scanResult.scanSpec.enableFieldInfo : scanResult.scanSpec.enableMethodInfo)
                  || !scanResult.scanSpec.enableAnnotationInfo) {
              throw new IllegalArgumentException("Please call ClassGraph#enable" + (isField ? "Field" : "Method")
                      + "Info() and " + "#enableAnnotationInfo() before #scan()");
          }
          final ReachableAndDirectlyRelatedClasses fieldOrMethodAnnotations = this.filterClassInfo(relType,
                  /* strictWhitelist = */ false, ClassType.ANNOTATION);
          final Set<ClassInfo> fieldOrMethodAnnotationsAndMetaAnnotations = new LinkedHashSet<>(
                  fieldOrMethodAnnotations.reachableClasses);
          return new ClassInfoList(fieldOrMethodAnnotationsAndMetaAnnotations,
                  fieldOrMethodAnnotations.directlyRelatedClasses, /* sortByName = */ true);
      }