Is there a way to use ReferencesSearch without references to classes in jdk or jars?

Hi Community,

I use ReferencesSearch.search(PsiClass, GlobalSearchScope) to search for references. The found references include also references to classes in the jdk like Serializable.
Now I would like to know if there is a way to exclude jars and the jdk from the search.

Markus

4 comments

Sure. That's exactly what GlobalSearchScope is for.

0

GlobalSearchScope.proejctScope(project) does not include jars? :)

0

Please sign in to leave a comment.