Add return type to static parseFile function.