code: public ProxySelector proxySelector() {
          DefaultProxySelector dps = new DefaultProxySelector();
  
          for (Proxy proxy : settings.getProxies()) {
              dps.add(MavenConverter.asProxy(proxy), proxy.getNonProxyHosts());
          }
  
          return dps;
      }
docs: Gets proxy selector
  
  @return the selector