src/vs/base/browser/ui/tree/compressedObjectTreeModel.ts/wrapIdentityProvider
const wrapIdentityProvider = <T>(base: IIdentityProvider<T>): IIdentityProvider<ICompressedTreeNode<T>> => ({
	getId(node) {
		return node.elements.map(e => base.getId(e).toString()).join('\0');
	}
});