PsiElement (@NotNull PsiElement element) { PsiElement parent = element.getParent(); if (parent instanceof PsiParenthesizedExpression && element.equals(((PsiParenthesizedExpression)parent).getExpression())) { return complexify(parent); } if (parent instanceof PsiTypeCastExpression && element.equals(((PsiTypeCastExpression)parent).getOperand())) { return complexify(parent); } return element; }