mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
read access
This commit is contained in:
@@ -59,7 +59,12 @@ public class OverridingMethodsSearch extends ExtensibleQueryFactory<PsiMethod, O
|
||||
}
|
||||
|
||||
public static Query<PsiMethod> search(final PsiMethod method, SearchScope scope, final boolean checkDeep) {
|
||||
if (cannotBeOverriden(method)) return EmptyQuery.getEmptyQuery(); // Optimization
|
||||
if (ApplicationManager.getApplication().runReadAction(new Computable<Boolean>() {
|
||||
@Override
|
||||
public Boolean compute() {
|
||||
return cannotBeOverriden(method);
|
||||
}
|
||||
})) return EmptyQuery.getEmptyQuery(); // Optimization
|
||||
return INSTANCE.createUniqueResultsQuery(new SearchParameters(method, scope, checkDeep));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user