for (Enumeration i = miscList.elements(); i.hasMoreElements();) { Mounted mounted = (Mounted)i.nextElement(); if (mounted.getType().hasFlag(MiscType.F_HEAT_SINK)) { return false; } else if (mounted.getType().hasFlag(MiscType.F_LASER_HEAT_SINK)) { return true;
if (hasLaserHeatSinks == HAS_UNKNOWN) { for (Mounted mounted : getMisc()) { if (mounted.getType().hasFlag(MiscType.F_HEAT_SINK)) { hasLaserHeatSinks = HAS_FALSE; break; } else if (mounted.getType().hasFlag(MiscType.F_LASER_HEAT_SINK)) { hasLaserHeatSinks = HAS_TRUE; break; }
    public boolean hasLaserHeatSinks() {        for (Enumeration i = miscList.elements(); i.hasMoreElements();) {            Mounted mounted = (Mounted)i.nextElement();            if (mounted.getType().hasFlag(MiscType.F_HEAT_SINK)) {                return false;            } else if (mounted.getType().hasFlag(MiscType.F_LASER_HEAT_SINK)) {                return true;            }        }        return false;    }