static int listSize(final int payloadSize) {
    int size = 1 + payloadSize;
    if (!isShortList(payloadSize)) size += sizeLength(payloadSize);
    return size;
  }
The encoded size of a list given the encoded size of its payload.
ethereum/rlp/src/main/java/org/hyperledger/besu/ethereum/rlp/RLPEncodingHelpers.java