boolean (@NotNull PsiLambdaExpression lambda, @NotNull PsiScopeProcessor processor, @NotNull ResolveState state, PsiElement lastParent, @NotNull PsiElement place) { boolean fromBody; if (lastParent instanceof DummyHolder) { PsiElement firstChild = lastParent.getFirstChild(); fromBody = firstChild instanceof PsiExpression || firstChild instanceof PsiCodeBlock; } else { fromBody = lastParent != null && lastParent == lambda.getBody(); } return processDeclarationsInMethodLike(lambda, processor, state, place, fromBody, null); }