can anyone help me out on finding all variables of a PsiClass? I'm looking for global as well as local variables. So far I am only able to find all global fields via psiClass.getAllFields(). Is there a convenient way in finding ALL variables within a PsiClass?
Furthermore, I wanted to ask how to identify each time a variable is assigned a value, such as
int a = 9; a = 30; String s = "text1"; s = "text2"
I'm looking for all of such assignments, can anyone help me out with these two questions?