code: public Map<String, ClassInfo> getAllClassesAsMap() {
          if (closed.get()) {
              throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed");
          }
          if (!scanSpec.enableClassInfo) {
              throw new IllegalArgumentException("Please call ClassGraph#enableClassInfo() before #scan()");
          }
          return classNameToClassInfo;
      }
docs: Get a map from class name to {@link ClassInfo} object for all classes, interfaces and annotations found
  during the scan.
  
  @return The map from class name to {@link ClassInfo} object for all classes, interfaces and annotations found
  during the scan.