docs: public static <T> T createInstance(Class<?> rawClass, Class<T> superclass) {
      try {
        return rawClass.asSubclass(superclass).getConstructor().newInstance();
      } catch (Exception e) {
        throw new ServiceConfigurationError(
            "Provider " + rawClass.getName() + " could not be instantiated.", e);
      }
    }