These methods were broken by 22419082d9 5 years ago and nobody complained, so maybe they're not so useful... But at least this should restore them to a working state. (cherry picked from commit 8c3a6b10a9)
22419082d9
8c3a6b10a9