}
List<ISearchQuery> queries = new ArrayList<ISearchQuery>();
BeansSearchScope scope = BeansSearchScope.newSearchScope();
if (searchFor == SEARCH_FOR_TYPES) {
queries.add(new BeanClassQuery(scope, search, true, false));
}
else if (searchFor == SEARCH_FOR_FIELDS) {
queries.add(new BeanPropertyQuery(scope, search, true, false));
queries.add(new BeanReferenceQuery(scope, search, true, false));
}