docs: public Class<?> loadClass(final String className, final boolean returnNullIfClassNotFound)
              throws IllegalArgumentException {
          if (closed.get()) {
              throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed");
          }
          if (className == null || className.isEmpty()) {
              throw new NullPointerException("className cannot be null or empty");
          }
          try {
              return Class.forName(className, scanSpec.initializeLoadedClasses, classGraphClassLoader);
          } catch (final ClassNotFoundException | LinkageError e) {
              if (returnNullIfClassNotFound) {
                  return null;
              } else {
                  throw new IllegalArgumentException("Could not load class " + className + " : " + e);
              }
          }
      }