public void forEachTransition(
        final CodecInteraction interaction,
        final Consumer<TransitionGroup> consumer)
    {
        final List<TransitionGroup> transitionsForContext = transitionsByInteraction.get(interaction);
        if (null != transitionsForContext)
        {
            transitionsForContext.forEach(consumer);
        }
    }
Iterates over the possible state machine transitions due to the supplied codec interaction.
@param interaction a codec interaction.
@param consumer the consumer of the transitions.
sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/common/FieldPrecedenceModel.java