Is it possible to find the most recent common ancestor of two methods?

Answered

Given two methods is there an easy way in IntelliJ to determine if one is called by the other, another method calls both (or maybe calls methods that call the original methods), or neither. For a simple example:

      def m1:

           m2()

           m3()

    def m2:

           inputMethod1()

    def m3:

           inputMethod2()

 

I'm looking for the functionality where given inputMethod1 and inputMethod2, it would give me m1. Is there anyway to determine this? The call hierarchy works for very simple cases, but in a large code base it quickly becomes unmanageable to track all the branches.

 

Thanks!

0
1 comment
Avatar
Permanently deleted user

no

0

Please sign in to leave a comment.