def METHOD_NAME(paragraph):
    style = paragraph['paragraphStyle']['namedStyleType']
    # Compress runs of text together.
    parelems = []
    for element in paragraph['elements']:
        pelem = parse_Element(element)
        if isinstance(pelem, TextRun):
            last = parelems[-1] if parelems else None
            if last and isinstance(last, TextRun) and last.family == pelem.family:
                parelems.pop(-1)
                pelem = TextRun(last.text + pelem.text, last.family)
            parelems.append(pelem)
        else:
            assert pelem is None
    # Convert all the hard newlines to soft ones.
    parelems = [elem._replace(text=elem.text.replace('\x0b', '\n'))
                if isinstance(elem, TextRun)
                else elem
                for elem in parelems]
    return (style, parelems)