public function addEnginesFile(string $filename) : void
    {
        $decodedFileContent = $this->loadFile($filename);

        $engineFactory = new EngineFactory();

        foreach (array_keys($decodedFileContent) as $engineName) {
            $engineName = (string) $engineName;
            $engineData = $decodedFileContent[$engineName];

            $this->collection->addEngine($engineName, $engineFactory->build($engineData, $decodedFileContent, $engineName));
        }
    }