docs: private void setProtocols(String protocolsString, boolean append) {
      List<Protocol> protocolsList = new ArrayList<>();
      if (append) {
        protocolsList.addAll(client.getProtocols());
      }
      for (String protocol : protocolsString.split(",", -1)) {
        try {
          protocolsList.add(Protocol.get(protocol));
        } catch (IOException e) {
          throw new IllegalStateException(e);
        }
      }
      client.setProtocols(protocolsList);
    }