@Override
  public void applyFix(@NotNull final Project project, @NotNull final PsiElement element, @NotNull final ModPsiUpdater updater) {
    final PyBinaryExpression expression = as(element, PyBinaryExpression.class);
    if (isLogicalAndExpression(expression)) {
      final PyBinaryExpression rightExpression = as(expression.getRightExpression(), PyBinaryExpression.class);
      PyBinaryExpression leftExpression = as(expression.getLeftExpression(), PyBinaryExpression.class);
      if (isLogicalAndExpression(leftExpression)) {
        final PyExpression nested = myUseRightChildOfLeft ? leftExpression.getRightExpression() : leftExpression.getLeftExpression();
        leftExpression = as(nested, PyBinaryExpression.class);
      }

      if (isComparisonExpression(leftExpression) && isComparisonExpression(rightExpression)) {
        applyFix(leftExpression, rightExpression, project);
      }
    }
  }
@Override
  public void applyFix(@NotNull final Project project, @NotNull final PsiElement element, @NotNull final ModPsiUpdater updater)