public void forEachWrappedStateByVersionDesc(final IntObjConsumer<State> consumer)
    {
        for (final Map.Entry<Integer, State> entry : versionWrappedStates.descendingMap().entrySet())
        {
            consumer.accept(entry.getKey(), entry.getValue());
        }
    }
Iterates over the states after a codec is wrapped over a particular version of data.
@param consumer the consumer of the states.
sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/common/FieldPrecedenceModel.java