code: private String format(final long bytes) {
          if (bytes > MB) {
              return String.valueOf(bytes / MB) + " MB";
          }
          return String.valueOf(bytes / KB) + " KB";
      }
docs: Format the size returning it as MB or KB.
  
  @param bytes
  The size to be formatted
  @return The formatted size