private static void replaceSimplifiableImplicitAssignment(GrIfStatement statement)
        throws IncorrectOperationException {
      final PsiElement prevStatement =
        PsiTreeUtil.skipWhitespacesBackward(statement);
      if (prevStatement == null) {
        return;
      }
      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 GrExpression lhs = assignmentExpression.getLValue();
      final String lhsText = lhs.getText();
      replaceStatement(statement,
          lhsText + operator + conditionText + ';');
      prevStatement.delete();
    }
private static void replaceSimplifiableImplicitAssignment(GrIfStatement statement)