if (targetVariant == null) {
result = addVariant(result, helperVariant);
} else if (helperVariant.includes(targetVariant)) {
// Detected a more generic variant, but still consider
// the conversion is possible to the target variant.
result = addVariant(result, new VariantInfo(
targetVariant.getMediaType()));
} else if (targetVariant.includes(helperVariant)) {
// Detected a more specific variant, but still consider
// the conversion is possible to the target variant.
result = addVariant(result, helperVariant);