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