The class TYPO3\CMS\Core\DataHandling\DataHandler provides a very handy method getPID(). Unfortunately, I can't seem to be able to find a method that returns the language (sys_language_id) of the referenced item (basically content items and pages). How would I do that?