cmd/gazelle/metaresolver.go
func (mr metaResolver) Resolver(r *rule.Rule, pkgRel string) resolve.Resolver {
	for _, mappedKind := range mr.mappedKinds[pkgRel] {
		if mappedKind.KindName == r.Kind() {
			return mr.builtins[mappedKind.FromKind]
		}
	}
	return mr.builtins[r.Kind()]
}
func (mr metaResolver) Resolver(r *rule.Rule, pkgRel string) resolve.Resolver {
	for _, mappedKind := range mr.mappedKinds[pkgRel] {
		if mappedKind.KindName == r.Kind() {
			return mr.builtins[mappedKind.FromKind]
		}
	}
	return mr.builtins[r.Kind()]
}
// Resolver returns a resolver for the given rule and package, and a bool
// indicating whether one was found. Empty string may be passed for pkgRel,
// which results in consulting the builtin kinds only.