I have two method methodA and methodB, and I want to find the call paths from methodA to methodB, if any.
Eclipse and IntelliJ has function to find call hierarchy. However, I need to expand the calling relation one level at a time. When projects become complex, it is time-consuming. (it is like doing a BFS manually.)
This is useful in some senarios: For example, methodA may be the doPost() method in a servlet, while methodB is a method in an arbitrary class. I am assigned to do some bug fix on methodB, but I am not familiar with the entire project which is done by a large team. So I want to find the calling path (methodA -> method1->method2-> ... -> methodB) to quickly get an idea of the overall control flow, as well as checking whether some resource used in methodB is thread safe.