@Override
  // As per https://eips.ethereum.org/EIPS/eip-1283
  public long calculateStorageRefundAmount(
      final UInt256 newValue,
      final Supplier<UInt256> currentValue,
      final Supplier<UInt256> originalValue) {

    UInt256 localCurrentValue = currentValue.get();
    if (localCurrentValue.equals(newValue)) {
      return 0L;
    } else {
      UInt256 localOriginalValue = originalValue.get();
      if (localOriginalValue.equals(localCurrentValue)) {
        if (localOriginalValue.isZero()) {
          return 0L;
        } else if (newValue.isZero()) {
          return STORAGE_RESET_REFUND_AMOUNT;
        } else {
          return 0L;
        }
      } else {
        long refund = 0L;
        if (!localOriginalValue.isZero()) {
          if (localCurrentValue.isZero()) {
            refund = NEGATIVE_STORAGE_RESET_REFUND_AMOUNT;
          } else if (newValue.isZero()) {
            refund = STORAGE_RESET_REFUND_AMOUNT;
          }
        }

        if (localOriginalValue.equals(newValue)) {
          refund =
              refund
                  + (localOriginalValue.isZero()
                      ? SSTORE_DIRTY_RETURN_TO_UNUSED_REFUND_AMOUNT
                      : SSTORE_DIRTY_RETURN_TO_ORIGINAL_VALUE_REFUND_AMOUNT);
        }
        return refund;
      }
    }
  }
Returns the amount of gas the CREATE2 operation will consume.

@param frame The current frame
@return the amount of gas the CREATE2 operation will consume
@deprecated Compose the operation cost from {@link #txCreateCost()}, {@link
    #memoryExpansionGasCost(MessageFrame, long, long)}, {@link #createKeccakCost(int)}, and
    {@link #initcodeCost(int)}. As done in {@link
    org.hyperledger.besu.evm.operation.Create2Operation#cost(MessageFrame, Supplier)}
evm/src/main/java/org/hyperledger/besu/evm/gascalculator/ConstantinopleGasCalculator.java