Get PsiClass from PsiFile Permanently deleted user Created August 12, 2015 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"