boolean (PyBinaryExpression element) { PyExpression left = element.getLeftExpression(); PyExpression right = element.getRightExpression(); if (left instanceof PyParenthesizedExpression && right instanceof PyParenthesizedExpression) { PyExpression leftContained = ((PyParenthesizedExpression)left).getContainedExpression(); PyExpression rightContained = ((PyParenthesizedExpression)right).getContainedExpression(); if (leftContained != null && rightContained != null && !(leftContained instanceof PyTupleExpression) && !(rightContained instanceof PyTupleExpression)) { left.replace(leftContained); right.replace(rightContained); return true; } } return false; }