Reported in https://github.com/google/guava/issues/3086#issuecomment-378523615

Needs a fix like https://github.com/google/guava/commit/8f22dbc8ea0c1abdf044846057f6df8201ee9961
@Override
            public void recordHits(int count) {}
            @Override
            public void recordMisses(int count) {}
            @Override
            public void recordLoadSuccess(long loadTime) {}
            @Override
            public void recordLoadException(long loadTime) {}
            @Override
            public void recordEviction() {}
            @Override
            public CacheStats snapshot() {
              return EMPTY_STATS;
            }
          });
  static final CacheStats EMPTY_STATS = new CacheStats(0, 0, 0, 0, 0, 0);
  static final Supplier<StatsCounter> CACHE_STATS_COUNTER =
      new Supplier<StatsCounter>() {
        @Override
        public StatsCounter get() {
          return new SimpleStatsCounter();
        }
      };
  enum NullListener implements RemovalListener<Object, Object> {
    INSTANCE;
    @Override
    public void onRemoval(RemovalNotification<Object, Object> notification) {}
  }
  enum OneWeigher implements Weigher<Object, Object> {
    INSTANCE;