private function extensionsFile(array $files) : array
    {
        $extensionsFiles = [];

        foreach ($files as $file) {
            if (str_contains($file, $this->extensions)) {
                $extensionsFiles[] = $file;
            }
        }

        return $extensionsFiles;
    }
private function extensionsFile(array $files) : array
    {
        $extensionsFiles = [];

        foreach ($files as $file) {
            if (str_contains($file, $this->extensions)) {
                $extensionsFiles[] = $file;
            }
        }

        return $extensionsFiles;
    }
@param $files

@return array