code: @Override
  	public void removeAll() {
  		if (children != null) {
  			for (int i = 0; i < children.size(); i++) {
  				TreeNode child = children.get(i);
  
  				if (child instanceof AbstractTreeNode) {
  					((AbstractTreeNode) child).parent = null;
  				}
  			}
  
  			children = null;
  		}
  	}
docs: {@inheritDoc}