code: public void setStatistics(boolean enabled) {
          all().forEach(cache -> updateStatistics(cache.getName(), new Cache(false, enabled)));
      }
docs: Enable or disable statistics for all caches
  @param enabled true for enabling all