Bug 42109 Go to Previous target not acting like Go to Next target
Go to Previous target is searching through unselected targets such as warnings. The behavior is dissimilar from Go to Next target whose action is reflecting the selection of the drop down to configure targets. The checkmarks for the two are the same, but the behavior differs.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java
return new Region(offset, length);
	}
	
	private static boolean isBracket(char character) {
		for (int i= 0; i != BRACKETS.length; ++i)
			if (character == BRACKETS[i])
				return true;
		return false;
	}
	private static boolean isSurroundedByBrackets(IDocument document, int offset) {
		if (offset == 0 || offset == document.getLength())
			return false;
		try {
			return
				isBracket(document.getChar(offset - 1)) &&
				isBracket(document.getChar(offset));
			
		} catch (BadLocationException e) {
			return false;	
		}
	}
	private IJavaAnnotation getNextAnnotation(int offset, int length, boolean forward, Position annotationPosition) {
		IJavaAnnotation nextAnnotation= null;
		Position nextAnnotationPosition= null;
		IJavaAnnotation containingAnnotation= null;
		Position containingAnnotationPosition= null;
		boolean currentAnnotation= false;
		
		IDocument document= getDocumentProvider().getDocument(getEditorInput());