This static `fromFile` method is deprecated AFAIR.