docs: private ProvisioningFeatureDefinition getPreferredVersion(String symbolicName, List<ProvisioningFeatureDefinition> featureList) {
          Version preferredVersion = symbolicNameToPreferredVersion.get(symbolicName);
          ProvisioningFeatureDefinition result = null;
  
          if (preferredVersion != null) {
              for (ProvisioningFeatureDefinition feature : featureList) {
                  if (preferredVersion.equals(feature.getVersion())) {
                      result = feature;
                      break;
                  }
              }
          }
  
          if (result == null) {
              result = featureList.iterator().next();
          }
  
          return result;
      }