An example of usage: https://github.com/magento/magento2/blob/4d5990adea0b49ade3794b8a1dde793d25103d35/app/code/Magento/Customer/Model/Customer.php#L960