IJavaAnnotation annot= (IJavaAnnotation) iter.next(); Position pos= model.getPosition((Annotation) annot); if (pos != null) { int startLine= document.getLineOfOffset(pos.getOffset()); if (startLine == currLine && JavaCorrectionProcessor.hasCorrections(annot)) { return true;
Annotation annot= (Annotation) iter.next(); if (JavaCorrectionProcessor.isQuickFixableType(annot)) { Position pos= model.getPosition(annot); if (pos != null) { int startLine= document.getLineOfOffset(pos.getOffset()); if (startLine == currLine && JavaCorrectionProcessor.hasCorrections(annot)) { return true; }
	private boolean hasQuickFixLightBulb(IAnnotationModel model, int offset) {		try {			IDocument document= getDocument();			if (document == null) {				return false;			}						int currLine= document.getLineOfOffset(offset);						Iterator iter= new JavaAnnotationIterator(model, true);			while (iter.hasNext()) {				IJavaAnnotation annot= (IJavaAnnotation) iter.next();				Position pos= model.getPosition((Annotation) annot);				if (pos != null) {					int startLine= document.getLineOfOffset(pos.getOffset());					if (startLine == currLine && JavaCorrectionProcessor.hasCorrections(annot)) {						return true;					}				}			}		} catch (BadLocationException e) {			JavaPlugin.log(e);		}		return false;	}