code: public ClassInfoList getClassDependencies() {
          if (!scanResult.scanSpec.enableInterClassDependencies) {
              throw new IllegalArgumentException(
                      "Please call ClassGraph#enableInterClassDependencies() before #scan()");
          }
          return referencedClasses == null ? ClassInfoList.EMPTY_LIST : referencedClasses;
      }
docs: Get the class dependencies.
  
  @return A {@link ClassInfoList} of {@link ClassInfo} objects for all classes referenced by this class. Note
  that you need to call {@link ClassGraph#enableInterClassDependencies()} before
  {@link ClassGraph#scan()} for this method to work. You should also call
  {@link ClassGraph#enableExternalClasses()} before {@link ClassGraph#scan()} if you want
  non-whitelisted classes to appear in the result.