for (Enumeration e = getMisc(); e.hasMoreElements(); ) { Mounted m = (Mounted)e.nextElement();
for (Mounted m:getMisc()) {
    public int getAllUMUCount(){        int count = 0;                if ( !(this instanceof Mech) )            return 0;                if ( this.hasShield() && this.getNumberOfShields(MiscType.S_SHIELD_LARGE) > 0)            return 0;        for (Enumeration e = getMisc(); e.hasMoreElements(); ) {            Mounted m = (Mounted)e.nextElement();            EquipmentType type = m.getType();            if (type instanceof MiscType && type.hasFlag(MiscType.F_UMU)) {                count++;            }        }        return count;    }