Bug 64129 Highlight method exit points fail
When the return type is primitive like int or void, this function works well. But if the return type is a class, like Vector, my Eclipse 3M9 just highlights all the occurrences of "Vector" in the file. This function should be smarter.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java
MethodExitsFinder finder= new MethodExitsFinder();
				message= finder.initialize(astRoot, selection.getOffset(), selection.getLength());
				if (message == null) {
					matches= finder.perform();
				}
			}
			if (matches.size() == 0) {
				ASTNode node= NodeFinder.perform(astRoot, selection.getOffset(), selection.getLength());
				if (!(node instanceof Name)) {
					if (!fStickyOccurrenceAnnotations)
						removeOccurrenceAnnotations();
					return;
				}
				
				IBinding binding= ((Name)node).resolveBinding();
				if (binding == null && fStickyOccurrenceAnnotations)
					return;
				
				if (!markOccurrencesOfType(binding)) {
					if (!fStickyOccurrenceAnnotations)
						removeOccurrenceAnnotations();
					return;
				}
				
				
				OccurrencesFinder finder = new OccurrencesFinder(binding);
				message= finder.initialize(astRoot, selection.getOffset(), selection.getLength());
				if (message == null)
					matches= finder.perform();
			}