function varargout = addToHierarchy(this, newElement)
%

% Copyright 2016 The MathWorks, Inc.

firstChild = this.down;
if (~isempty(firstChild)) && (firstChild == newElement)
    %noop
else
    connect(this,newElement,'down');
end


if nargout>0
    varargout{1} = newElement;
end





