public FileUsageBase::add(FileInterface $file, $module, $type, $id, $count = 1)
Records that a module is using a file.
Examples:
A module that associates files with nodes, so $type would be 'node' and $id would be the node's nid. Files for all revisions are stored within a single nid. The User module associates an image with a user, so $type would be 'user' and the $id would be the user's uid.
Parameters
\Drupal\file\FileInterface $file: A file entity.
string $module: The name of the module