public static <T extends Set<?>> Set<?> createNewSet(Class<T> destSetType, Collection<?> srcValue) {
        Set<Object> result = (Set<Object>)createNewSet(destSetType);
        if (srcValue != null) {
            result.addAll(srcValue);
        }
        return result;
    }
Internal class that contains various Collection utilities specific to Dozer requirements. Not intended for direct use
by application code.
core/src/main/java/com/github/dozermapper/core/util/CollectionUtils.java