* @return коллекция значений.
* @throws Exception ошибка преобразования.
*/
private Collection getCollectionValue(Method method, Class<?> valueType, Collection<String> values) throws Exception {
CollectionGenericType annotation = method.getAnnotation(CollectionGenericType.class);
Class<?> elementType = annotation == null ? String.class : annotation.type();
@SuppressWarnings("unchecked")
Collection<? super Object> result = (Collection) valueType.getConstructor().newInstance();
for (String stringValue : values) {
stringValue = OptionConverter.replaceVariables(stringValue);
Object value = getValueFromString(elementType, stringValue);