How can i check usage of the PsiField by the JetBrains api ?

Answered

Hello , i develop plugin for intellij idea , I need check usage of the field of the class.
How can i check usage of the PsiField by the JetBrains api ?
And how can I check modifying of this field ?

0
5 comments

I mean assign a different value to this field. 

How can I check this assigning to my field ? 

Have you some turnkey solution ? 

0

You can check usages for being a com.intellij.psi.PsiAssignmentExpression

1

Thanks , and do you have some turnkey solution to check that somebody use synchronized block on object of my class or locks the lock on it ? 

1

Not sure I understand what you're looking for exactly, but you can find a number of related inspections around synchronization/threading in com.siyeh.ig.threading package in InspectionGadgets plugin from IJ Community sources

0

Please sign in to leave a comment.