title: How to easily find which endpoints call a method?
body: <p>I have an app with many endpoints. I made a change to functionWhoIsCallingMe(). I want to find which controller endpoints call this function (directly or hierarchically) so I can test it.</p>
  <pre><code>@RequestMapping(&quot;/a&quot;)
  someEndpoint(){
   anyFunction()
  }
  
  @RequestMapping(&quot;/b&quot;)
  anotherEndpoint(){
   functionWhoIsCallingMe()
  }
  
  anyFunction(){
    functionWhoIsCallingMe()
  }
  </code></pre>
  <p>Given this code I want to know [&quot;/a&quot;, &quot;/b&quot;] is calling functionWhoIsCallingMe().</p>
  <p>I tried &quot;Call Hierarchy&quot; but that's not practical here because it would take to long to open all the tabs. I also tried filtering like suggested <a href="https://stackoverflow.com/a/14466508/1308453">here</a>, but that doesn't work because you can only specify one type of class to NOT match and if it doesn't match it wont show the calling method. I can't say only show files with Controller in the file name.</p>