public static function fromFilePath(RootPackage $root, string $filePath) : self { return new self($root, JsonObject::fromFilePath($filePath)); }
public static function createFromPath(string $dirPath) : self { return new static($dirPath, JsonObject::fromFilePath($dirPath . DIRECTORY_SEPARATOR . 'composer.json')); }