protected function getLocalizedFileReferences(string $table, string $field) {
    if ($this->getSysLanguageUid() > 0) {
      return $this->fileRepository->findByRelation($table, $field, $this->getLocalizedUid());
    }

    return null;
  }