boolean (@NotNull PsiScopeProcessor processor, @NotNull ResolveState state, PsiElement lastParent, @NotNull PsiElement place) { ElementClassHint elementClassHint = processor.getHint(ElementClassHint.KEY); if (elementClassHint != null && !elementClassHint.shouldProcess(ElementClassHint.DeclarationKind.VARIABLE)) return true; if (lastParent == null) { return processDeclarationsInLoopCondition(processor, state, place, this); } PsiExpression condition = getCondition(); if (condition != null && lastParent == getBody()) { return condition.processDeclarations(processor, PatternResolveState.WHEN_TRUE.putInto(state), null, place); } return true; }