@Override
    public boolean processDeclarations(@NotNull PsiScopeProcessor processor, @NotNull ResolveState substitutor, PsiElement lastParent, @NotNull PsiElement place) {
        if (lastParent == null) {
            PsiElement child = getFirstChild();
            while (child != null) {
                if (!child.processDeclarations(processor, substitutor, null, place)) return false;
                child = child.getNextSibling();
            }
        }

        return true;
    }
@Override
    public boolean processDeclarations(@NotNull PsiScopeProcessor processor, @NotNull ResolveState substitutor, PsiElement lastParent, @NotNull PsiElement place)