PyExpression () { final PyExpression leftOperand = getLeftExpression(); if (PyTokenTypes.COMPARISON_OPERATIONS.contains(getOperator())) { final PyBinaryExpression leftBinaryExpr = as(leftOperand, PyBinaryExpression.class); if (leftBinaryExpr != null && PyTokenTypes.COMPARISON_OPERATIONS.contains(leftBinaryExpr.getOperator())) { return leftBinaryExpr.getRightExpression(); } } return leftOperand; }