public function createFromExistingPath(string $path): File
    {
        $file = new File($path);
        if (false === $file->exists()) {
            throw new DoctrineStaticMetaException('File does not exist at ' . $path);
        }

        return $file;
    }