Eclipse offers text search only. What you are asking for will require some kind of compiler, such as support, to evaluate the type of object you are synchronizing.
As a workaround, you can add comments to synchronized statements explaining the syncobjects class.
synchronized(nobodyKnowsMyName)
It will be an effort, but you will get what you want.
source
share