private SearchRequestorResultCollector executeSearch(SearchPattern searchPattern,
SearchRequestorResultCollector requestor) throws CoreException {
assertNotNull(searchPattern);
SearchEngine engine = new SearchEngine();
SearchParticipant defaultSearchParticipant = SearchEngine.getDefaultSearchParticipant();
IDLTKSearchScope scope = SearchEngine.createSearchScope(searchProj);
engine.search(searchPattern, array(defaultSearchParticipant), scope, requestor, new NullProgressMonitor());
return requestor;
}