boolean (@NotNull PyExpression expression) { // A collection literal in brackets if (expression instanceof PyParenthesizedExpression) { return ((PyParenthesizedExpression)expression).getContainedExpression() instanceof PyTupleExpression; } return expression instanceof PySequenceExpression && !(expression instanceof PyTupleExpression); }