switch (compareRulerLine(model.getPosition((Annotation)a), document, line)) { case 1: exact.add(a); break; case 2: including.add(a); break;
if (a.isRelevant()) { Position position= model.getPosition((Annotation)a); if (position == null) continue; String message= a.getMessage(); if (positions.containsKey(position)) { if (message.equals(positions.get(position))) continue; else {    } } positions.put(position, message); switch (compareRulerLine(position, document, line)) { case 1: exact.add(a); break; case 2: including.add(a); break; }
	protected List getProblemAnnotationsForLine(ISourceViewer viewer, int line) {				IDocument document= viewer.getDocument();		IAnnotationModel model= viewer.getAnnotationModel();				if (model == null)			return null;					List exact= new ArrayList();		List including= new ArrayList();				Iterator e= model.getAnnotationIterator();		while (e.hasNext()) {			Object o= e.next();			if (o instanceof IProblemAnnotation) {				IProblemAnnotation a= (IProblemAnnotation)o;				switch (compareRulerLine(model.getPosition((Annotation)a), document, line)) {					case 1:						exact.add(a);						break;					case 2:						including.add(a);						break;				}			}		}				return select(exact, including);	}