boolean (PsiExpression operand) { PsiReferenceExpression ref = tryCast(PsiUtil.skipParenthesizedExprDown(operand), PsiReferenceExpression.class); if (ref == null) return false; PsiParameter target = tryCast(ref.resolve(), PsiParameter.class); if (target == myParameter) return true; if (target == null) return false; return target.getParent() instanceof PsiParameterList && target.getParent().getParent() instanceof PsiLambdaExpression; }