code: public Resource getMaxContainerResources() {
      double maxCpu = 0;
      ByteAmount maxRam = ByteAmount.ZERO;
      ByteAmount maxDisk = ByteAmount.ZERO;
      for (ContainerPlan containerPlan : getContainers()) {
        Resource containerResource =
            containerPlan.getScheduledResource().or(containerPlan.getRequiredResource());
        maxCpu = Math.max(maxCpu, containerResource.getCpu());
        maxRam = maxRam.max(containerResource.getRam());
        maxDisk = maxDisk.max(containerResource.getDisk());
      }
  
      return new Resource(maxCpu, maxRam, maxDisk);
    }
docs: Computes the maximum of all the resources required by the containers in the packing plan. If
  the PackingPlan has already been scheduled, the scheduled resources will be used over the
  required resources.
  
  @return maximum Resources found in all containers.