@Override
  public void deleteChildInternal(@NotNull ASTNode child) {
    if (child == getBody()) {
      replaceChildInternal(child, (TreeElement)JavaPsiFacade.getElementFactory(getProject()).createStatementFromText("{}", null));
    } else {
      super.deleteChildInternal(child);
    }
  }
@Override
  public void deleteChildInternal(@NotNull ASTNode child)