public Hierarchy ToHierarchy() { var hierarchy = new Hierarchy { Top = this }; organizeIntoHierarchy(hierarchy); return hierarchy; }