boolean (PsiExpression arg) { for (PsiElement expr : MethodCandidateInfo.ourOverloadGuard.currentStack()) { if (PsiTreeUtil.getParentOfType(expr, PsiFunctionalExpression.class, false) == arg) { return true; } } return false; }