@Override
  public void clear() {
    // store in log in reverse so when we restore them we are appending
    for (int i = delegate.size() - 1; i >= 0; i--) {
      remove(i);
    }
  }
Create an UndoList backed by another List instance.

@param delegate The List instance to use for backing storage
evm/src/main/java/org/hyperledger/besu/collections/undo/UndoList.java