I want to identify all instances of reference equality for a particular class and replace them with equals
. Is there a technique or tool in IntelliJ that I can use for this? Can I filter Find Usages down to "usage in ==
" somehow?
Essentially, I would like this tool to list:
Instances of this class and sub-classes
That are used in reference equality
It is okay if it does not detect reference equality checks of instances of superclasses of this class.