class InjectionUtils {

    static Class<?> getCollectionType(Class<?> rawType) {
        Class<?> type = null;
        if (SortedSet.class.isAssignableFrom(rawType)) {
            type = TreeSet.class; //NOPMD
        } else if (Set.class.isAssignableFrom(rawType)) {
            type = HashSet.class; //NOPMD
        } else if (Collection.class.isAssignableFrom(rawType)) {
            type = ArrayList.class; //NOPMD
        }
        return type;

    }

    private  InjectionUtils();

}