docs: public ClassInfoList getAllAnnotations() {
          if (closed.get()) {
              throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed");
          }
          if (!scanSpec.enableClassInfo || !scanSpec.enableAnnotationInfo) {
              throw new IllegalArgumentException(
                      "Please call ClassGraph#enableClassInfo() and #enableAnnotationInfo() before #scan()");
          }
          return ClassInfo.getAllAnnotationClasses(classNameToClassInfo.values(), scanSpec);
      }