final PsiElement statementGrandParent =
statementParent.getParent();
statementGrandParent.addBefore(newStatement,
statementParent);
} else {
<BUG>statementParent.addAfter(newStatement, statement);

}
if (parent == variable) {
final PsiExpression initializer = variable.getInitializer();
if (initializer != null) {
initializer.delete();
}
}</BUG>
}

final PsiElement statementGrandParent =
statementParent.getParent();
statementGrandParent.addBefore(newStatement,
statementParent);
} else {
statementParent.addAfter(newStatement, anchor);
