How to access "find usages" functionality from my own plugin?


I am implementing some advanced refactoring support for java and I want to reuse the existing "Find Usages" of a local variable, specifically to whether a reference to that variable is a "READ" or "WRITE" operation. I am now implementing it from scratch, but I'd like to reuse the results of the one already built in IDEA (showing up when I ctrl-click the variable, for example).

Any hints on this ?


1 comment
Comment actions Permalink

AFAIU com.intellij.codeInsight.daemon.impl.UnusedSymbolUtil#processUsages should work


Please sign in to leave a comment.