code: public static <B extends ConnectionConfiguration.Builder<B,?>> B disableHostnameVerificationForTlsCertificates(B builder) {
          builder.setHostnameVerifier(DOES_NOT_VERIFY_VERIFIER);
          return builder;
      }
docs: Disable the hostname verification of TLS certificates.
  <p>
  <b>Warning:</b> Use with care. This disables hostname verification of TLS certificates and essentially
  <b>invalidates all security guarantees provided by TLS</b>. Only use this method if you understand the
  implications.
  </p>
  
  @param builder a connection configuration builder.
  @param <B> Type of the ConnectionConfiguration builder.
  @return the given builder.