boolean (@NotNull PsiScopeProcessor processor, @NotNull ResolveState state, PsiElement lastParent, @NotNull PsiElement place) { if (lastParent != null) return true; ElementClassHint elementClassHint = processor.getHint(ElementClassHint.KEY); if (elementClassHint != null && !elementClassHint.shouldProcess(ElementClassHint.DeclarationKind.VARIABLE)) return true; if (state.get(PatternResolveState.KEY) == PatternResolveState.WHEN_FALSE) return true; PsiPattern pattern = getPattern(); if (pattern == null) return true; return pattern.processDeclarations(processor, state, null, place); }