default List<RedUINode> buildParentHierarchy(RedUINode to) {
        List<RedUINode> hierarchy = new LinkedList<>();
        RedUINode next = this;

        hierarchy.add(next);
        while (!next.isRoot() && next != to) {
            next = next.getParent();
            if (next == null) {
                throw new RuntimeException("Found node with null parent while building parent hierarchy");
            }
            hierarchy.add(next);
        }

        return hierarchy;
    }
Builds a list traversing up the tree graph, such that:

<ul>
<li> The first element is this node
<li> The last element is either <code>to</code> or the root node, whichever
     one is found first.
</ul>

@param to The node to stop at if found
@return The hierarchy list
core/src/main/java/mrtjp/projectred/redui/RedUINode.java