TreeElement (TreeElement first, ASTNode last, ASTNode anchor, Boolean before) { if (first == last && first.getElementType() == JavaElementType.CODE_BLOCK) { ASTNode semicolon = TreeUtil.findChildBackward(this, SEMICOLON); if (semicolon != null) { deleteChildInternal(semicolon); } } return super.addInternal(first, last, anchor, before); }