private void findJavaAnnotation() {
fPosition = null;
fAnnotation = null;
fHasCorrection = false;
AbstractMarkerAnnotationModel model = getAnnotationModel();
IAnnotationAccessExtension annotationAccess = getAnnotationAccessExtension();
IDocument document = getDocument();
if (model == null)
return;
boolean hasAssistLightbulb = false;
// fStore.getBoolean(RutaPreferenceConstants.EDITOR_QUICKASSIST_LIGHTBULB);
Iterator iter = model.getAnnotationIterator();
int layer = Integer.MIN_VALUE;
while (iter.hasNext()) {
Annotation annotation = (Annotation) iter.next();
if (annotation.isMarkedDeleted())
continue;
int annotationLayer = layer;
if (annotationAccess != null) {
annotationLayer = annotationAccess.getLayer(annotation);
if (annotationLayer < layer)
continue;
}
Position position = model.getPosition(annotation);
if (!includesRulerLine(position, document))
continue;
boolean isReadOnly = fTextEditor instanceof ITextEditorExtension
&& ((ITextEditorExtension) fTextEditor).isEditorInputReadOnly();