How to find the project library that a PsiClass is provided from. Follow
Answered
For a plugin i'm working on i want to find the project library which provides the given PsiClass. Is there a API to find this information ?
Please sign in to leave a comment.
com.intellij.openapi.roots.ProjectFileIndex offers this information when you query psiClass#getContainingFile#getVirtualFile, see utility method com.intellij.openapi.roots.libraries.LibraryUtil#findLibraryEntry for sample usage.