'Sublime text plugin or command for moving back and forth between definition and reference

I want a sublime plugin or command from which i can move back and forth between a method reference and it's definition. So for example i am viewing a method methodA() and there is a method methodB() called inside methodA(), so what i want to be able to do is move to methodB()'s definition examine it and then move back to methodA(). So bascially i want to keep a sort of stack of method calls and want to move back when i have examined the method methodB(). I know that sublime text keeps a cursor position stack and you can use alt - to move back but i want a definition jump stack not cursor one.

I have tried to search for the required plugin and such but to no avail.

Btw I am using Sublime Text 4



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source