private MutableWorldState getWorldState(final BlockHeader blockHeader) {
    return worldStateArchive
        .getWorldState(withBlockHeaderAndNoUpdateNodeHead(blockHeader))
        .orElseThrow(
            () ->
                new IllegalArgumentException(
                    "Public world state not available for block " + blockHeader.toLogString()));
  }
Applies block header overrides to the block header.

@param header The original block header.
@param newProtocolSpec The ProtocolSpec for the block.
@param blockOverrides The BlockOverrides to apply.
@return The modified block header.
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/transaction/BlockSimulator.java