mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java] disable find method dialog with options for method outside of class
^IDEA-353817 fixed GitOrigin-RevId: 0ea84844d5b4f10437d8530d0605613cb83d5efd
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a23105ad9d
commit
e57891c496
@@ -109,7 +109,7 @@ public class FindMethodUsagesDialog extends JavaFindUsagesDialog<JavaMethodFindU
|
||||
}
|
||||
|
||||
protected boolean noSpecificOptions(PsiElement element) {
|
||||
return element instanceof PsiMethod method && method.getContainingClass() != null;
|
||||
return !(element instanceof PsiMethod method) || method.getContainingClass() == null;
|
||||
}
|
||||
|
||||
protected boolean canSearchForOverridingMethods(PsiElement element) {
|
||||
|
||||
Reference in New Issue
Block a user