class TypeUtils {

    public static Type getCollectionGeneric(Type type) {
        return getTypeArguments(type, Collection.class).get(Collection.class.getTypeParameters()[0]);
    }

    private  TypeUtils();

}