public static void EnsureNoUsages <TLink>(this ILinks <TLink> links, TLink link) { if (links.HasUsages(link)) { throw new ArgumentLinkHasDependenciesException <TLink>(link); } }