code: public static ByteAmount fromMegabytes(long megabytes) {
      if (megabytes >= MAX_MB) {
        return new ByteAmount(Long.MAX_VALUE);
      } else {
        return new ByteAmount(megabytes * MB);
      }
    }
docs: Creates a ByteAmount value in megabytes. If the megabytes value
  is $lt;= Long.MAX_VALUE / 1024 / 1024, the byte representation is capped at Long.MAX_VALUE.
  
  @param megabytes value in megabytes to represent
  @return a ByteAmount object repressing the number of MBs passed