code: static ClassInfoList getAllAnnotationClasses(final Collection<ClassInfo> classes, final ScanSpec scanSpec) {
          return new ClassInfoList(
                  ClassInfo.filterClassInfo(classes, scanSpec, /* strictWhitelist = */ true, ClassType.ANNOTATION),
                  /* sortByName = */ true);
      }
docs: Get all annotation classes found during the scan. See also
  {@link #getAllInterfacesOrAnnotationClasses(Collection, ScanSpec, ScanResult)} ()}.
  
  @param classes
  the classes
  @param scanSpec
  the scan spec
  @return A list of all annotation classes found during the scan, or the empty list if none.