private Collection<ReferenceType> typeToCollection(Type type) {
        ArrayList<ReferenceType> res = new ArrayList<ReferenceType>(1);
        if (type != null) {
            res.add((ReferenceType) env.typeMaker.getType(type));
        }
        return res;
    }