docs: protected void fillResourcesRequirementForBaseContainer(
        BaseContainer container, Integer containerIndex, PackingPlan packing) {
      PackingPlan updatedPackingPlan = packing.cloneWithHomogeneousScheduledResource();
      Resource maxResourceContainer =
          updatedPackingPlan.getContainers().iterator().next().getRequiredResource();
  
      double cpu = 0;
      ByteAmount disk = ByteAmount.ZERO;
      ByteAmount mem = ByteAmount.ZERO;
      for (PackingPlan.ContainerPlan cp : packing.getContainers()) {
        Resource containerResource = cp.getRequiredResource();
        cpu = Math.max(cpu, containerResource.getCpu());
        disk = disk.max(containerResource.getDisk());
        mem = mem.max(containerResource.getRam());
      }
      container.cpu = maxResourceContainer.getCpu();
      // Convert them from bytes to MB
      container.diskInMB = maxResourceContainer.getDisk().asMegabytes();
      container.memInMB = maxResourceContainer.getRam().asMegabytes();
      container.ports = SchedulerUtils.ExecutorPort.getRequiredPorts().size();
    }