While type inference is cool, it makes code harder to read here.
I have no idea what the type of parserPlugin is when I read the patch.
That requires me to resolve the resut of module.create(env), go find the definition of ParserPluginFactory to figure out what this is...