code: public static List<InetSocketAddress> inetSocketAddresses(AbstractConfig config, String key) {
      Preconditions.checkNotNull(config, "config cannot be null");
      List<String> value = config.getList(key);
      List<InetSocketAddress> addresses = new ArrayList<>(value.size());
      for (String s : value) {
        addresses.add(parseInetSocketAddress(s));
      }
      return ImmutableList.copyOf(addresses);
    }
docs: Method is used to return a list of InetSocketAddress from a config list of hostname:port strings.
  
  @param config config to read the value from
  @param key    key for the value
  @return List of InetSocketAddress for the supplied strings.