code: public static <T> Instantiator<T> createInstantiator(
        Class<T> klass, InstantiatorModule... modules) {
      Errors errors = new Errors();
      for (Instantiator<T> instantiator : createInstantiator(errors, klass, modules)) {
        return instantiator;
      }
      errors.throwIfHasErrors();
  
      // The following program should not be reachable since the factory should
      // produce errors if it is unable to create an instantiator.
      throw new IllegalStateException();
    }
docs: Creates an instantiator for {@code klass}.