mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Use one level (getChildrenOfTypeAsList) instead of recursive (findChildrenOfType)
One level is enough for siblings and much faster than recursive
This commit is contained in:
@@ -133,7 +133,7 @@ public final class PsiQuery<T extends PsiElement> {
|
||||
|
||||
@NotNull
|
||||
public <R extends PsiElement> PsiQuery<R> siblings(@NotNull final PsiFilter<R> filter) {
|
||||
return getQueryWithProducer(o -> PsiTreeUtil.findChildrenOfType(o.getParent(), filter.myClass), filter);
|
||||
return getQueryWithProducer(o -> PsiTreeUtil.getChildrenOfTypeAsList(o.getParent(), filter.myClass), filter);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user