private static @Nullable IfConditionalModel nullIfLValueSideEffect(@Nullable IfConditionalModel model) {
    if (model == null || model.getThenBranch() instanceof PsiExpressionStatement expressionStatement &&
                         expressionStatement.getExpression() instanceof PsiAssignmentExpression assignmentExpression &&
                         SideEffectChecker.mayHaveSideEffects(assignmentExpression.getLExpression())) {
      return null;
    }
    return model;
  }
private static @Nullable IfConditionalModel nullIfLValueSideEffect(@Nullable IfConditionalModel model)