boolean (@NotNull PsiScopeProcessor processor, @NotNull ResolveState state, PsiElement lastParent, @NotNull PsiElement place) { processor.handleEvent(PsiScopeProcessor.Event.SET_DECLARATION_HOLDER, this); if (lastParent == null || lastParent.getParent() != this || lastParent == getIteratedValue()) // Parent element should not see our vars return true; PsiPattern pattern = getIterationPattern(); if (pattern instanceof PsiDeconstructionPattern) { PsiDeconstructionPattern deconstructionPattern = (PsiDeconstructionPattern)pattern; return deconstructionPattern.processDeclarations(processor, state, lastParent, place); } return false; }