public <S, D extends StateDuplicator<S>> void createSelectorState(
      final TransactionSelector selector, final S initialState, final D duplicator) {
    checkState(
        !blockSelectionStarted, "Cannot create selector state after block selection is started");
    committedState.put(selector, new SelectorState<>(initialState, duplicator));
  }
Create, initialize and track the state for a selector.

<p>Call to this method must be performed before the block selection is stated with {@link
#blockSelectionStarted()}, otherwise it fails.

@param selector the selector
@param initialState the initial value of the state
@param duplicator the state duplicator
@param <S> the type of the selector state
@param <D> the type of the state duplicator
plugin-api/src/main/java/org/hyperledger/besu/plugin/services/txselection/SelectorsStateManager.java