docs: public static int sizeOfSimpleStatementValues(
        SimpleStatement simpleStatement,
        ProtocolVersion protocolVersion,
        CodecRegistry codecRegistry) {
      int size = 0;
  
      if (!simpleStatement.getPositionalValues().isEmpty()) {
  
        List<ByteBuffer> positionalValues =
            new ArrayList<>(simpleStatement.getPositionalValues().size());
        for (Object value : simpleStatement.getPositionalValues()) {
          positionalValues.add(Conversions.encode(value, codecRegistry, protocolVersion));
        }
  
        size += Values.sizeOfPositionalValues(positionalValues);
  
      } else if (!simpleStatement.getNamedValues().isEmpty()) {
  
        Map<String, ByteBuffer> namedValues = new HashMap<>(simpleStatement.getNamedValues().size());
        for (Map.Entry<CqlIdentifier, Object> value : simpleStatement.getNamedValues().entrySet()) {
          namedValues.put(
              value.getKey().asInternal(),
              Conversions.encode(value.getValue(), codecRegistry, protocolVersion));
        }
  
        size += Values.sizeOfNamedValues(namedValues);
      }
      return size;
    }