Bug 44362 [painting] Should not search for occurrences if element under cursor is the same
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java
if (matches == null) {
			ASTNode node= NodeFinder.perform(astRoot, selection.getOffset(), selection.getLength());
			IBinding binding= null;
			if (node instanceof Name)
				binding= ((Name)node).resolveBinding();
			if (binding != null && markOccurrencesOfType(binding)) {
				
				OccurrencesFinder finder = new OccurrencesFinder(binding);
				String message= finder.initialize(astRoot, selection.getOffset(), selection.getLength());
				if (message == null)
					matches= finder.perform();
			}
		}
		if (matches == null || matches.size() == 0) {
			if (!fStickyOccurrenceAnnotations)
				removeOccurrenceAnnotations();
			return;
		}
		Position[] positions= new Position[matches.size()];
		int i= 0;
		for (Iterator each= matches.iterator(); each.hasNext();) {
			ASTNode currentNode= (ASTNode)each.next();
			positions[i++]= new Position(currentNode.getStartPosition(), currentNode.getLength());
		}
		fOccurrencesFinderJob= new OccurrencesFinderJob(document, positions, selection);
		
		
		
		fOccurrencesFinderJob.run(new NullProgressMonitor());
	}