boolean (final @NotNull PsiElement place, final @NotNull PsiElement originalPlace, final @NotNull PsiScopeProcessor processor, final @NotNull ResolveState state) { PsiElement maxScope = null; if (ResolveUtilKt.processNonCodeMembers(state)) { maxScope = PsiTreeUtil.getParentOfType(place, GrFunctionalExpression.class); } return PsiTreeUtil.treeWalkUp(place, maxScope, (scope, lastParent) -> { ProgressManager.checkCanceled(); if (!doProcessDeclarations(originalPlace, lastParent, scope, substituteProcessor(processor, scope), state)) { return false; } issueLevelChangeEvents(processor, scope); return true; }); }