@SuppressWarnings("unchecked")
  public <T> void setSelectorWorkingState(final TransactionSelector selector, final T newState) {
    ((SelectorState<T, StateDuplicator<T>>) uncommitedStates.getLast().get(selector)).set(newState);
  }
set the working state for the specified selector

@param selector the selector
@param newState the new state
@param <T> the type of the selector state
plugin-api/src/main/java/org/hyperledger/besu/plugin/services/txselection/SelectorsStateManager.java