private static NoSuchMethodException buildCheckedException(
      Class<?> baseClass, Map<String, Throwable> problems) {
    NoSuchMethodException exc =
        new NoSuchMethodException(
            "Cannot find constructor for " + baseClass + "\n" + formatProblems(problems));
    problems.values().forEach(exc::addSuppressed);
    return exc;
  }
Set the {@link ClassLoader} used to lookup classes by name.

<p>If not set, the current thread's ClassLoader is used.

@param newLoader a ClassLoader
@return this Builder for method chaining
amoro-common/src/main/java/org/apache/amoro/utils/DynConstructors.java