src/vs/base/common/resourceTree.ts/ResourceTree/getRoot
class ResourceTree:	static getRoot<T, C>(node: IResourceNode<T, C>): IResourceNode<T, C> {
		while (node.parent) {
			node = node.parent;
		}

		return node;
	}