'>CollectionState</span>&gt;(<span class='token-externalParam'>action</span> <span class='token-internalParam'>actionMap</span>: WritableKeyPath&lt;GlobalActionType, ElementIDAction&lt;Self.StateType.ID, Self.InputActionType&gt;?&gt;, <span class='token-externalParam'>stateCollection</span>: KeyPath&lt;GlobalStateType, CollectionState&gt;) -&gt; LiftToCollectionMiddleware&lt;GlobalActionType, GlobalActionType, GlobalStateType, CollectionState, Self&gt; <span class='token-keyword'>where</span> CollectionStat