code: public static MappingSocketAddressResolver create(DnsResolver dnsResolver,
              Function<HostAndPort, HostAndPort> mappingFunction) {
          return new MappingSocketAddressResolver(dnsResolver, mappingFunction);
      }
docs: Create a new {@link SocketAddressResolver} given {@link DnsResolver} and {@link Function mapping function}.
  
  @param dnsResolver must not be {@literal null}.
  @param mappingFunction must not be {@literal null}.
  @return the {@link MappingSocketAddressResolver}.