void (@NotNull PyBinaryExpression node) { super.visitPyBinaryExpression(node); final PyElementType operator = node.getOperator(); final PyExpression rightExpression = node.getRightExpression(); if (rightExpression == null || rightExpression instanceof PyBinaryExpression || node.getLeftExpression() instanceof PyBinaryExpression) { return; } if (PyTokenTypes.EQUALITY_OPERATIONS.contains(operator)) { if (operandsEqualTo(node, COMPARISON_LITERALS) || (!myIgnoreComparisonToZero && operandsEqualTo(node, Collections.singleton("0")))) { registerProblem(node); } } }