Iterator<BugAnnotation> i = annotationList.iterator(); while (i.hasNext()) { BugAnnotation annotation = i.next();
for (BugAnnotation annotation : annotationList) {
	public SourceLineAnnotation getPrimarySourceLineAnnotation() {		// Highest priority: return the first top level source line annotation		Iterator<BugAnnotation> i = annotationList.iterator();		while (i.hasNext()) {			BugAnnotation annotation = i.next();			if (annotation instanceof SourceLineAnnotation)				return (SourceLineAnnotation) annotation;		}		// Second priority: return the source line annotation describing the		// primary method		MethodAnnotation primaryMethodAnnotation = getPrimaryMethod();		if (primaryMethodAnnotation != null)			return primaryMethodAnnotation.getSourceLines();		else			return null;	}