docs: public static int getMemoryInUse() {
      Runtime runtime = Runtime.getRuntime();
      long mb = 1024 * 1024;
      long total = runtime.totalMemory();
      long free = runtime.freeMemory();
      return (int) ((total - free) / mb);
    }