Bug 81196 Can't search for References, ... to an ITypeParameter [search]
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FindAction.java
}
	private void performNewSearch(IJavaElement element) throws JavaModelException {
		JavaSearchQuery query= createJob(element);
		if (query != null) {
			NewSearchUI.activateSearchResultView();
			if (query.canRunInBackground()) {
				/*
				 * This indirection with Object as parameter is needed to prevent the loading
				 * of the Search plug-in: the VM verifies the method call and hence loads the
				 * types used in the method signature, eventually triggering the loading of
				 * a plug-in (in this case ISearchQuery results in Search plug-in being loaded).
				 */
				SearchUtil.runQueryInBackground(query);
			} else {
				IProgressService progressService= PlatformUI.getWorkbench().getProgressService();
				/*
				 * This indirection with Object as parameter is needed to prevent the loading
				 * of the Search plug-in: the VM verifies the method call and hence loads the
				 * types used in the method signature, eventually triggering the loading of
				 * a plug-in (in this case it would be ISearchQuery).
				 */
				IStatus status= SearchUtil.runQueryInForeground(progressService, query);
				if (status.matches(IStatus.ERROR | IStatus.INFO | IStatus.WARNING)) {
					ProblemDialog.open(getShell(), SearchMessages.getString("Search.Error.search.title"), SearchMessages.getString("Search.Error.search.message"), status); 
				}
			}
		}
	}
	JavaSearchQuery createJob(IJavaElement element) throws JavaModelException {
		return new JavaSearchQuery(new ElementQuerySpecification(element, getLimitTo(), getScope(element), getScopeDescription(element)));