Collection ret = new HashSet(); for (Iterator iter = resolved.iterator(); iter.hasNext();) { IvyNode node = (IvyNode)iter.next(); ret.add(node.getId()); ret.add(node.getResolvedId()); } return ret;
return new HashSet(resolved);
    public Collection getResolvedRevisions(ModuleId mid, String rootModuleConf) {        Collection resolved = (Collection)_selectedDeps.get(new ModuleIdConf(mid, rootModuleConf));        if (resolved == null) {            return new HashSet();        } else {            Collection ret = new HashSet();            for (Iterator iter = resolved.iterator(); iter.hasNext();) {                IvyNode node = (IvyNode)iter.next();                ret.add(node.getId());                ret.add(node.getResolvedId());            }            return ret;        }    }