void dispatchConsumerAccordingToMergeState(final Consumer<SwitchingObject> consumer) {
    consumer.accept(mergeContext.isPostMerge() ? postMergeObject : preMergeObject);
  }
Dispatch consumer according to merge state.

@param consumer the consumer
consensus/merge/src/main/java/org/hyperledger/besu/consensus/merge/TransitionUtils.java