PsiExpression (PsiExpression expression) { PsiElement parent = PsiUtil.skipParenthesizedExprUp(expression.getParent()); if (parent instanceof PsiExpressionList || parent instanceof PsiTemplate) { parent = parent.getParent(); } return tryCast(parent, PsiExpression.class); }