private static void replaceSimplifiableAssignment(GrIfStatement statement)
        throws IncorrectOperationException {
      final GrCondition condition = statement.getCondition();
      final String conditionText = condition.getText();
      final GrStatement thenBranch = statement.getThenBranch();
      final GrAssignmentExpression assignmentExpression =
          (GrAssignmentExpression) ConditionalUtils.stripBraces(thenBranch);
      final IElementType operator =
          assignmentExpression.getOperationTokenType();
      final String operatorText = getTextForOperator(operator);
      final GrExpression lhs = assignmentExpression.getLValue();
      final String lhsText = lhs.getText();
      replaceStatement(statement,
          lhsText + operatorText + conditionText + ';');
    }
private static void replaceSimplifiableAssignment(GrIfStatement statement)