public static WorldStateQueryParams withStateRootAndUpdateNodeHead(final Hash stateRoot) {
    return newBuilder().withStateRoot(stateRoot).withShouldWorldStateUpdateHead(true).build();
  }
Should return a worldstate instance with a state root and should update the node head.

@param stateRoot the state root
@return an instance of WorldStateQueryParams
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/trie/pathbased/common/provider/WorldStateQueryParams.java