I am writing an intelliJ plugin where I need to get java class from PsiClass. For that I am writing this code,
Class<?> clazz = Class.forName(psiClass.getQualifiedName());
But it is not working, giving ClassNotFoundException
. For my use case, I want to access the methods of java class. I tried searching it and found this relevant post
where it is mentioned that it is not possible. Is there any workaround to achieve what I want.