Add API StateMachine.canAccept(E event)