PsiElement (@NotNull PyBinaryExpression expression) { PsiElement op = expression.getPsiOperator(); while (isComparisonExpression(expression.getLeftExpression())) { expression = (PyBinaryExpression)expression.getLeftExpression(); op = expression.getPsiOperator(); } assert op != null; return op; }