protected Set<SupportedImageType> extractImageTypesFromOption(final CommandLine commandLine, final String option) {
final Set<SupportedImageType> result = this.objectFactory.newMutableSet();
final String[] optionValues = this.determineIncludedImageTypes(commandLine.getOptionValues(option));
for(final String optionValue : optionValues) {
final SupportedImageType supportedImageType = this.convertStringImageTypeArgumentToEnumType(optionValue);
result.add(supportedImageType);
}
return result;
}