Closes https://github.com/ppy/osu-framework/issues/3280
Moved from osu!framework.
Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>