[java] overriding search: return false if search was canceled by consumer

GitOrigin-RevId: 02c4f24580e4eae58b49d28a055630735d25ae0e
This commit is contained in:
Anna Kozlova
2022-10-21 08:49:57 +02:00
committed by intellij-monorepo-bot
parent e2bea456d2
commit b6571d42d7

View File

@@ -56,7 +56,10 @@ public class JavaOverridingMethodsSearcher implements QueryExecutor<PsiMethod, O
if (!ReadAction.compute(() -> PsiSearchScopeUtil.isInScope(searchScope, subMethod))) {
continue;
}
if (!consumer.process(subMethod) || !parameters.isCheckDeep()) {
if (!consumer.process(subMethod)) {
return false;
}
if (!parameters.isCheckDeep()) {
return true;
}
}