void (PsiVariable variable) { if (!myDeleteSelf) return; if (myReplaceSelf) { PsiExpression initializer = variable.getInitializer(); assert initializer != null; variable.replace(initializer); } else { super.deleteTemplateField(variable); } }