for (Enumeration e = getMisc(); e.hasMoreElements(); ) { Mounted m = (Mounted)e.nextElement();
for (Mounted m: getMisc()) {
    public int getAngelECMRange() {        for (Enumeration e = getMisc(); e.hasMoreElements(); ) {            Mounted m = (Mounted)e.nextElement();            EquipmentType type = m.getType();            if (type instanceof MiscType                    && type.hasFlag(MiscType.F_ECM)                    && !m.isDestroyed() && !m.isMissing()) {                return 6;            }        }        return Entity.NONE;    }