docs: private PackingPlanBuilder getResourceCompliantRRAllocation(
        PackingPlanBuilder planBuilder, Map<String, Integer> componentChanges)
        throws ConstraintViolationException {
  
      Map<String, Integer> componentsToScaleDown =
          PackingUtils.getComponentsToScale(componentChanges, PackingUtils.ScalingDirection.DOWN);
      Map<String, Integer> componentsToScaleUp =
          PackingUtils.getComponentsToScale(componentChanges, PackingUtils.ScalingDirection.UP);
  
      if (!componentsToScaleDown.isEmpty()) {
        resetToFirstContainer();
        removeInstancesFromContainers(planBuilder, componentsToScaleDown);
      }
  
      if (!componentsToScaleUp.isEmpty()) {
        resetToFirstContainer();
        assignInstancesToContainers(planBuilder, componentsToScaleUp, PolicyType.FLEXIBLE);
      }
      return planBuilder;
    }