@Override
    public void set(final V v) {
      throw new UnsupportedOperationException(
          "UndoList does not support iterator based modification");
    }
A list that supports rolling back the list to a prior state.

<p>To register a prior state you want to roll back to call `mark()`. Then use that value in a
subsequent call to `undo(mark)`. Every mutation operation across all undoable collections
increases the global mark, so a mark set in once collection is usable across all
UndoableCollection instances.

@param <V> The type of the collection.
evm/src/main/java/org/hyperledger/besu/collections/undo/UndoList.java