docs: static long getTotalMaxUsage(Map<String, MemoryUsage> usages) {
      long sum = 0L;
      for (Map.Entry<String, MemoryUsage> e : usages.entrySet()) {
        long max = e.getValue().getMax();
        if (max > 0) {
          sum += e.getValue().getMax();
        }
      }
      return sum;
    }