Best way to scan file for all references?

Right now I use PsiRecursiveElementVisitor and getReferences to find all
references within a file (to compute dependencies). Is there some better,
optimized way to find all references in a file?

Please sign in to leave a comment.