void (@NotNull HierarchyNodeDescriptor baseElement) { myBaseDescriptor = baseElement; myRoot = baseElement; while(myRoot.getParentDescriptor() != null){ myRoot = (HierarchyNodeDescriptor)myRoot.getParentDescriptor(); } }