for (Iterator i = list.iterator(); i.hasNext(); ) { final Permission p = (Permission)i.next();
for (Permission p : list) {
    public boolean implies(Permission perm) {        for (Iterator i = list.iterator(); i.hasNext(); ) {            final Permission p = (Permission)i.next();            if (p.implies(perm)) {                return true;            }        }        return false;    }