for (Iterator<Element> i = bugInstanceList.iterator(); i.hasNext(); ) { final Element element = (Element) i.next();
for (final Element element : bugInstanceList) {
	public void scan(Document document, final String appName) throws MissingNodeException, IOException {		List<Element> bugInstanceList = getBugInstanceList(document);		for (Iterator<Element> i = bugInstanceList.iterator(); i.hasNext(); ) {			final Element element = (Element) i.next();			scanAttributeList(new AttributeCallback() {				public void apply(Attribute attribute) throws MissingNodeException {					attribute.scan(element, appName);				}			});		}	}