code: func (t *typeResolver) withKeepDefinitionsPackage(definitionsPackage string) *typeResolver {
  	t.keepDefinitionsPkg = definitionsPackage
  	t.knownDefsKept = make(map[string]struct{}, len(t.KnownDefs))
  	for k := range t.KnownDefs {
  		t.knownDefsKept[k] = struct{}{}
  	}
  	return t
  }
docs: // withKeepDefinitionsPackage instructs the type resolver to keep previously resolved package name for
  // definitions known at the moment it is first called.