for (Enumeration e = entity.getMisc(); e.hasMoreElements(); ) { Mounted m = (Mounted)e.nextElement();
for (Mounted m : entity.getMisc()) {
    private void setupMines() {        GridBagLayout gbl = new GridBagLayout();        panMines.setLayout(gbl);        GridBagConstraints gbc = new GridBagConstraints();                int row = 0;        for (Enumeration e = entity.getMisc(); e.hasMoreElements(); ) {            Mounted m = (Mounted)e.nextElement();            if (!m.getType().hasFlag((MiscType.F_MINE))) {                continue;            }                        gbc.gridy = row++;            MineChoicePanel mcp = new MineChoicePanel(m);            gbl.setConstraints(mcp, gbc);            panMines.add(mcp);            m_vMines.addElement(mcp);        }    }