Obtaining a PsiFile from a PsiType
已回答
How can a PsiFile be obtained from a PsiType?
I assume that the PsiTypes that I will be working with will be PsiClassTypes, if it's easier with the subclass instead of the superclass.
请先登录再写评论。
Ross,
Having an instance of PsiClassTypes, you can get the PsiElement and its containing file: