Get PsiClass from PsiFile Follow Tam Nguyen 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"