code: public void setClassLoader(ClassLoader loader) {
      this.classLoader = loader;
      // Note that this class is immutable after construction, except for the class loader
      // Thus we can pass down the loader to the owner and parameter types once now, no need to pass it down in toType()
      if (this.enclosingType != null) {
        this.enclosingType.setClassLoader(loader);
      }
      if (this.parameters != null) {
        for (TypeRepresentation param: this.parameters) {
          param.setClassLoader(loader);
        }
      }
    }
docs: Set the class loader to be used by toType(), getRawType(), etc.
  @param loader the class loader to use