public static IReferenceKey FindChildKey(this IReference reference) => reference.FindKey(ReferenceFlags.Child);
public static IReferenceKey FindParentKey(this IReference reference) => reference.FindKey(ReferenceFlags.Parent);