docs: private List<ResourceRequirement> getSortedInstances(Set<String> componentNames) {
      List<ResourceRequirement> resourceRequirements = new ArrayList<>();
      for (String componentName : componentNames) {
        Resource requiredResource = this.componentResourceMap.getOrDefault(componentName,
            defaultInstanceResources);
        resourceRequirements.add(new ResourceRequirement(componentName,
            requiredResource.getRam(), requiredResource.getCpu()));
      }
      Collections.sort(resourceRequirements, sortingStrategy.reversed());
  
      return resourceRequirements;
    }