I have a huge project with a class that is widely used everywhere inside this project. This class defines toString() method which outputs a lot of information. I want to define another method, say, toShortString() and replace all of the occurrences where original toString() is called with this method call.
The problem is that there is a lot of code that looks like follows:
log.debug("Order issued: " + order);
log.debug("Loaded list of orders: " + orders);
where order is instance of this object and orders is a list of such objects.
Is there any way to find all such occurrences?
Any suggestions are welcome. IDE is IntelliJ Idea, if it matters.
