code: private function extensionsFile(array $files) : array
      {
          $extensionsFiles = [];
  
          foreach ($files as $file) {
              if (str_contains($file, $this->extensions)) {
                  $extensionsFiles[] = $file;
              }
          }
  
          return $extensionsFiles;
      }
docs: @param $files
  
  @return array