By using IntelliJ IDEA Find Usages feature, we will find only the first level of method usages, but I need to find all possible combinations of call hierarchy recursively that invoke this method
For example, given the below call hierarchy:
MyClass.myMethod()used inside bothClass1.method1()andClass2.method2()Class1.method1()used inside bothClass3.method3()andClass4.method4()Class2.method2()used inside bothClass5.method5()andClass6.method6()
By using the Find Usages Feature, the result will show the first-level usage only:
MyClass.myMethod()used insideClass1.method1()MyClass.myMethod()used insideClass2.method2()
But I need to find all possible combinations of call hierarchy recursively that invoke my method, so the expected answer should be like this:
MyClass.myMethod()used insideClass1.method1(),Class1.method1()used insideClass3.method3()MyClass.myMethod()used insideClass1.method1(),Class1.method1()used insideClass4.method4()MyClass.myMethod()used insideClass2.method2(),Class1.method2()used insideClass5.method3()MyClass.myMethod()used insideClass2.method2(),Class1.method2()used insideClass6.method4()

Simply by:
Navigatemenu then >Call Hierarchyoption[or use the related keyboard shortcut for
Call Hierarchyaccording to your OS]