GlobalSearchScope.directoryScope

I have a PsiDirectory and I want to have all PsiClasses in that directory. I use:

psiSearchHelper.findAllClasses(
GlobalSearchScope.directoryScope(psiDirectory, true)
);

Somehow I get 16 results on directories that should have only 4.
It seems every Class is put into the results 4 times.

What am I doing wrong here?

1 comment
Comment actions Permalink

Sorry for the double post... I got an exception when posting the first one on this forum and since I didn't see my message appear I retried. Now it seems the first message got through as well.
Maybe a moderator can remove this thread?

0

Please sign in to leave a comment.