for (Enumeration i = miscList.elements(); i.hasMoreElements();) { Mounted m = (Mounted)i.nextElement();
for (Mounted m : getMisc()) {
    public Mounted getMASC() {        for (Enumeration i = miscList.elements(); i.hasMoreElements();) {            Mounted m = (Mounted)i.nextElement();            MiscType mtype = (MiscType)m.getType();            if (mtype.hasFlag(MiscType.F_MASC) && m.isReady()) {                return m;            }        }        return null;    }