whenDocumentContent

inline fun <T> ResendableContent.whenDocumentContent(block: (DocumentContent) -> T): T?