docs: public static void initTLSv11orUpper() throws NoSuchAlgorithmException, KeyManagementException, IOException {
          final SSLSocket socket = (SSLSocket) SSLContext.getDefault().getSocketFactory().createSocket();
          if (isTLSv11orUpperEnabled(socket)) {
              return;
          }
          final String[] supportedProtocols = socket.getSupportedProtocols();
          Arrays.sort(supportedProtocols);
          for (int i = supportedProtocols.length - 1; i >= 0; i--) {
              final String supportedProtocol = supportedProtocols[i];
              if (supportedProtocol.startsWith("TLSv1.")) {
                  final SSLContext context = SSLContext.getInstance(supportedProtocol);
                  context.init(null, null, null);
                  SSLContext.setDefault(context);
                  return;
              }
          }
  
          throw new NoSuchAlgorithmException("for Salesforce API to work you need jvm with TLS 1.1 or higher support");
      }