( atCheck.hasFlag(AmmoType.F_PROTOMECH) == entity instanceof Protomech ) &&
    private void setupMunitions() {                GridBagLayout gbl = new GridBagLayout();        panMunitions.setLayout(gbl);        GridBagConstraints gbc = new GridBagConstraints();                int row = 0;        for (Enumeration e = entity.getAmmo(); e.hasMoreElements(); ) {            Mounted m = (Mounted)e.nextElement();            AmmoType at = (AmmoType)m.getType();            Vector vTypes = new Vector();            Vector vAllTypes = AmmoType.getMunitionsFor(at.getAmmoType());            if (vAllTypes == null || vAllTypes.size() < 2) {                continue;            }                        for (int x = 0, n = vAllTypes.size(); x < n; x++) {                AmmoType atCheck = (AmmoType)vAllTypes.elementAt(x);                boolean bTechMatch = (entity.getTechLevel() == atCheck.getTechType());                if (!bTechMatch && entity.getTechLevel() == TechConstants.T_IS_LEVEL_2 &&                         atCheck.getTechType() == TechConstants.T_IS_LEVEL_1) {                    bTechMatch = true;                }                                // if is_eq_limits is unchecked allow l1 guys to use l2 stuff                if (!client.game.getOptions().booleanOption("is_eq_limits")                    && entity.getTechLevel() == TechConstants.T_IS_LEVEL_1                    && atCheck.getTechType() == TechConstants.T_IS_LEVEL_2) {                    bTechMatch = true;                }		// If clan_ignore_eq_limits is unchecked,                // do NOT allow Clans to use IS-only ammo                int muniType = atCheck.getMunitionType();                if ( !client.game.getOptions().booleanOption("clan_ignore_eq_limits")                     && entity.getTechLevel() == TechConstants.T_CLAN_LEVEL_2                     && ( muniType == AmmoType.M_THUNDER_AUGMENTED ||                          muniType == AmmoType.M_THUNDER_INFERNO   ||                          muniType == AmmoType.M_THUNDER_VIBRABOMB ||                          muniType == AmmoType.M_THUNDER_ACTIVE)) {                    bTechMatch = false;		}                if ( !client.game.getOptions().booleanOption("minefields") &&                	AmmoType.canDeliverMinefield(atCheck) ) {                    continue;                }                // Battle Armor ammo can't be selected at all, proto ammo                // can't be selected by non protos, and vice versa.                if ( bTechMatch &&                     atCheck.getRackSize() == at.getRackSize() &&                     !atCheck.hasFlag(AmmoType.F_BATTLEARMOR) &&                     ( atCheck.hasFlag(AmmoType.F_PROTOMECH) ==                       entity instanceof Protomech ) &&                     atCheck.getTonnage(entity) == at.getTonnage(entity) ) {                    vTypes.addElement(atCheck);                }            }                        if (vTypes.size() < 2) {                continue;            }                        gbc.gridy = row++;            MunitionChoicePanel mcp = new MunitionChoicePanel(m, vTypes);            gbl.setConstraints(mcp, gbc);            panMunitions.add(mcp);            m_vMunitions.addElement(mcp);        }    }