public static boolean processChildren(PsiElement element, PsiScopeProcessor processor,
ResolveState substitutor, PsiElement lastParent, PsiElement place) {
PsiElement run = lastParent == null ? element.getLastChild() : lastParent.getPrevSibling();
while (run != null) {
if (PsiTreeUtil.findCommonParent(place, run) != run && !run.processDeclarations(processor, substitutor, null, place))
return false;
run = run.getPrevSibling();
}
return true;