addListener

abstract fun <L : StateMachine.Listener> addListener(listener: L): L