for (Enumeration i = miscList.elements(); i.hasMoreElements();) { Mounted mounted = (Mounted)i.nextElement();
for (Mounted mounted : getMisc()) {
    public int getNumberOfSinks() {        int sinks=0;        for (Enumeration i = miscList.elements(); i.hasMoreElements();) {            Mounted mounted = (Mounted)i.nextElement();            if (mounted.isDestroyed() || mounted.isBreached()) {                continue;            }            if (mounted.getType().hasFlag(MiscType.F_HEAT_SINK)) {                sinks++;            } else if(mounted.getType().hasFlag(MiscType.F_DOUBLE_HEAT_SINK)) {                sinks++;            }        }        return sinks;    }