Bug 31208 occurrences in file: some names cannot be searched for
20030206 package dd; import java.util.List; public class A { A(List elements){ } } select List in the import - ok, finds matches select List in the constructor declaration - no matches strange, it's the same List
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/FindOccurrencesEngine.java
public FindOccurencesCUEngine(ICompilationUnit unit) {
			fCUnit= unit;
		}
		protected CompilationUnit createAST() {
			return AST.parseCompilationUnit(fCUnit, true);
		}
		protected IJavaElement getInput() {
			return fCUnit;
		}
		protected IResource getMarkerOwner() throws JavaModelException {
			ICompilationUnit original= WorkingCopyUtil.getOriginal(fCUnit);
			return original.getUnderlyingResource();
		}
		protected void addSpecialAttributes(Map attributes) {
			
		}
		protected ISourceReference getSourceReference() {
			return fCUnit;
		}
	}
	
	public static FindOccurrencesEngine create(IJavaElement root) {
		ICompilationUnit unit= (ICompilationUnit)root.getAncestor(IJavaElement.COMPILATION_UNIT);
		if (unit != null)
			return new FindOccurencesCUEngine(unit);
		IClassFile cf= (IClassFile)root.getAncestor(IJavaElement.CLASS_FILE);
		if (cf != null)
			return new FindOccurencesClassFileEngine(cf);
		return null;
	}