code: public ModuleInfo getModuleInfo(final String moduleName) {
          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 moduleNameToModuleInfo.get(moduleName);
      }
docs: Get the {@link ModuleInfo} object for the named module, or null if no module of the requested name was found
  during the scan.
  
  @param moduleName
  The module name.
  @return The {@link ModuleInfo} object for the named module, or null if the module was not found.