boolean (@Nullable PyExpression expression) { if (!(expression instanceof PyBinaryExpression)) { return false; } final PyElementType operator = ((PyBinaryExpression)expression).getOperator(); return PyTokenTypes.RELATIONAL_OPERATIONS.contains(operator) || PyTokenTypes.EQUALITY_OPERATIONS.contains(operator); }