private static void ApplyCellFormat(
            this Range range,
            CellFormat format)
        {
            if (format == null)
            {
                return;
            }

            var implementedProperties = new[]
            {
                nameof(CellFormat.BackgroundColor),
                nameof(CellFormat.FontFormat),
            };

            format.ThrowOnNotImplementedProperty(implementedProperties);

            if (format.BackgroundColor != null)
            {
                range.SetBackgroundColor(format.BackgroundColor);
            }

            range.ApplyFontFormat(format.FontFormat);
        }