Bug 60349 [implementation] reduce warnings due to core.runtime deprecations
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java
return Status.CANCEL_STATUS;
				
				
				int length= fPositions.length;
				Map annotationMap= new HashMap(length);
				for (int i= 0; i < length; i++) {
					
					if (isCancelled())
						return Status.CANCEL_STATUS; 
					
					String message;
					Position position= fPositions[i];
					
					
					try {
						message= document.get(position.offset, position.length);
					} catch (BadLocationException ex) {
						
						continue;
					}
					annotationMap.put(
							new Annotation("org.eclipse.jdt.ui.occurrences", false, message), 
							position);
				}
				
				if (isCancelled())
					return Status.CANCEL_STATUS;
				
				synchronized (getLockObject(annotationModel)) {
					if (annotationModel instanceof IAnnotationModelExtension) {