Go to Declaration
Click a name and press ⌘B (Ctrl+B): the editor opens its declaration, in whichever file it is. Names are resolved the way a SystemVerilog tool resolves them: inner scopes first, then enclosing scopes, base classes, imported packages and the whole project. Two things with the same name in different scopes are never confused, such as a signal data in two modules.