if (!(referenceElement instanceof PsiReferenceExpression)) {
<BUG>deleteInitialization = false;
continue;</BUG>
}
<BUG>if (referenceElement.getTextOffset() <= startOffset) {
continue;</BUG>
}
final PsiReferenceExpression referenceExpression =
(PsiReferenceExpression) referenceElement;
final PsiElement referenceParent =

if (!(referenceElement instanceof PsiReferenceExpression)) {
result = KEEP_DECLARATION;
continue;
}
if (referenceElement.getTextOffset() <= startOffset) {
result = KEEP_DECLARATION;
continue;
}
final PsiReferenceExpression referenceExpression =
(PsiReferenceExpression) referenceElement;
final PsiElement referenceParent =
