public static void setCacheEventConsumer(final Consumer<CacheEvent> eventConsumer) {
    cacheEventConsumer = eventConsumer;
  }
Set an optional cache event consumer, such as a metrics system logger.

@param eventConsumer consumer of the CacheEvent.
evm/src/main/java/org/hyperledger/besu/evm/precompile/AbstractPrecompiledContract.java