Getting current project in an inspection

I have an inspection where I'd like to use PhpIndex (in PhpStorm).
For now, I use ProjectManager.getInstance().getOpenProject()[0] to get project in my visitor, but that's not quite good... Would anyone be able to provide me with the correct way?

1 comment

Answer: PsiElement has a getProject() method. Feeling dumb.


Please sign in to leave a comment.