private static Bytes readTrimmedData(final RLPInput in) {
    in.enterList();
    final int zeroLeadDataSize = in.readIntScalar();
    final Bytes shortData = in.readBytes();
    final MutableBytes data = MutableBytes.create(zeroLeadDataSize + shortData.size());
    data.set(zeroLeadDataSize, shortData);
    in.leaveList();
    return data;
  }
Reads the log entry from the provided RLP input.

@param in the input from which to decode the log entry.
@param compacted whether to compact the rlp log entry by trimming leading zeros on topics and
    data.
@return the read log entry.
evm/src/main/java/org/hyperledger/besu/evm/log/Log.java