private static IEnumerable <LineElement> CreateParagraphElements(
            this Word.Run run,
            IImageAccessor imageAccessor,
            IStyleFactory styleAccessor)
        {
            var textStyle = styleAccessor.EffectiveTextStyle(run.RunProperties);

            var elements = run
                           .ChildElements
                           .Where(c => c is Word.Text || c is Word.TabChar || c is Word.Drawing || c is Word.Break || c is Word.CarriageReturn)
                           .SelectMany(c => {
                return(c switch
                {
                    Word.Text t => t.SplitTextToElements(textStyle),
                    Word.TabChar t => new LineElement[] { new TabElement(textStyle) },
                    Word.Drawing d => d.CreateInlineDrawing(imageAccessor),
                    Word.CarriageReturn _ => new LineElement[] { new NewLineElement(textStyle) },
                    Word.Break b => b.CreateBreakElement(textStyle),
                    _ => throw new RendererException("unprocessed child")
                });
            })