Add strong type hinting on the DocumentInterface for 'getDocument(s)'-like methods.