Navigate to a Particular Tree Node
What you should know beforehand:
In case you have already obtained your navigation target, e.g., an
ITreeNode instance, you can use its
NavigateToTreeNode() method to navigate to it:
ITreeNode node = ... ; node.NavigateToTreeNode(true);
Other PSI syntax tree classes may also provide methods for navigation, e.g.
IDeclaredElement element = ... ; element.Navigate(true);