code: public static MemorySize create(MemorySize...memorySizes)
    {
      if(memorySizes == null)
        return null;
  
      if(memorySizes.length == 0)
        return ZERO_BYTES;
  
      MemorySize res = memorySizes[0];
  
      for(int i = 1; i < memorySizes.length; i++)
      {
        MemorySize memorySize = memorySizes[i];
        if(memorySize != null)
          res = res.add(memorySize);
      }
  
      return res;
    }
docs: Create a new instance of MemorySize by adding up the given
  array of memorySizes
  
  @param memorySizes
  @return a new instance of MemorySize