IntelliJ 检查一种方法是否可以从另一种方法访问

IntelliJ checking one method reachable from another

我有一个大项目。让我们关注该项目中的 2 类 - Class1 和 Class2。让 Class1 有 method1() 和 Class2 有 method2()。

我想检查是否可以通过任何方式从 method1() 访问 method2()。

一种方法是在 method2() 上执行 "find usages" 然后继续扫描调用直到我们到达 method1() (或者如果我们永远不会到达 method1() )。

注意:这个问题标注的重复不给回答我的问题。我不希望上述过程有任何捷径。我需要一种更省时的替代方法。

在 IntelliJ 中有其他更好的方法吗?

由于@Andrey 发表评论,我只是把它作为答案。

截至 2018 年 7 月,IntelliJ 2018.1 Ultimate 没有此功能。 您可以在此处投票以将此功能包含在未来的版本中。

https://youtrack.jetbrains.com/issue/IDEA-179171