GitOrigin-RevId: 5ea5ad0b8ea51bdf9f474ace20644e355dae034e
This commit is contained in:
Alexey Kudravtsev
2019-06-07 17:48:00 +03:00
committed by intellij-monorepo-bot
parent fc783b8552
commit 8cd6b94df0
6 changed files with 11 additions and 13 deletions

View File

@@ -61,6 +61,7 @@ public class OverridingMethodsSearch extends ExtensibleQueryFactory<PsiMethod, O
private OverridingMethodsSearch() {
}
@NotNull
public static Query<PsiMethod> search(@NotNull PsiMethod method, @NotNull SearchScope scope, final boolean checkDeep) {
if (ReadAction.compute(() -> !PsiUtil.canBeOverridden(method))) return EmptyQuery.getEmptyQuery(); // Optimization
return INSTANCE.createUniqueResultsQuery(new SearchParameters(method, scope, checkDeep));