public EvmConfiguration overrides(
      final OptionalInt newMaxCodeSize,
      final OptionalInt newMaxInitcodeSize,
      final OptionalInt newEvmStackSize) {
    return new EvmConfiguration(
        jumpDestCacheWeightKB,
        worldUpdaterMode,
        newEvmStackSize.orElse(MessageFrame.DEFAULT_MAX_STACK_SIZE),
        newMaxCodeSize.isPresent() ? Optional.of(newMaxCodeSize.getAsInt()) : Optional.empty(),
        newMaxInitcodeSize.isPresent()
            ? Optional.of(newMaxInitcodeSize.getAsInt())
            : Optional.empty());
  }
Update the configuration with new overrides, or clearing the overrides with {@link
Optional#empty}

@param newMaxCodeSize a new max code size override
@param newMaxInitcodeSize a new max initcode size override
@param newEvmStackSize a new EVM stack size override
@return the updated EVM configuration
evm/src/main/java/org/hyperledger/besu/evm/internal/EvmConfiguration.java