Get PsiClass from PsiFile Permanently deleted user 创建于 2015年08月12日 04:02 Does anyone know how to get PsiClass (java) from PsiFile ?Thanks.
Just typecast PsiFile to PsiJavaFile. Then call getClasses() method.
To support both Java and Kotlin, you will have to type cast to "PsiClassOwner"