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

Answered

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 ?

Thanks!

1 comment
Comment actions Permalink

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

0

Please sign in to leave a comment.