PsiElement (@NotNull PySequenceExpression literal) { if (literal instanceof PyTupleExpression && literal.getParent() instanceof PyParenthesizedExpression) { return literal.getParent(); } return literal; }