public static @Nullable EventConsumer setEventConsumer(@Nullable EventConsumer eventConsumer) {
    GlobalContext prev = ourGlobalContext;
    if (prev.consumer == null && eventConsumer == null) return null;
    ourGlobalContext = new GlobalContext(eventConsumer, prev.epoch + 1);
    if (prev.consumer != null) {
      LOG.info(ourFrameOverhead.resetAndReport("doCompute()"));
      LOG.info(ourTrackerOverhead.resetAndReport("getValue()"));
    }
    return prev.consumer;
  }
public static @Nullable EventConsumer setEventConsumer(@Nullable EventConsumer eventConsumer)