fun currentStateMachine(): ProtocolStateMachineImpl<*>?
Return the current ProtocolStateMachineImpl or null if executing outside of one.