public static bool HasSharedUnitNamesWith(this IDimension first, IDimension second) { if (first == null || second == null) { return(false); } return(first.GetSharedUnitNames(second).Any()); }