public static <A> List<A> get(Collection<Integer> indexes, List<A> list) {
        ArrayList<A> ret = new ArrayList<A>();
        for (Integer index : indexes) {
            ret.add(list.get(index));
        }
        return ret;
    }