code: func (t *typeResolver) NewWithModelName(name string) *typeResolver {
  	tt := newTypeResolver(t.ModelsPackage, t.Doc)
  	tt.ModelName = name
  
  	// propagates kept definitions
  	tt.keepDefinitionsPkg = t.keepDefinitionsPkg
  	tt.knownDefsKept = t.knownDefsKept
  	return tt
  }
docs: // NewWithModelName clones a type resolver and specifies a new model name