PsiElement (PsiExpression expression) { while (true) { final PsiElement parent = ExpressionUtils.getPassThroughParent(expression); if (!(parent instanceof PsiExpression) || parent instanceof PsiLambdaExpression || parent instanceof PsiAssignmentExpression) { return parent; } expression = (PsiExpression)parent; } }