public function findByHashes(array $hashes): array
    {
        $result = [];
        if (count($hashes) > 0) {
            $queryBuilder = $this->entityManager->createQueryBuilder();
            $queryBuilder->select('if')
                         ->from(IconFile::class, 'if')
                         ->andWhere('if.hash IN (:hashes)')
                         ->setParameter('hashes', array_values(array_map('hex2bin', $hashes)));

            $result = $queryBuilder->getQuery()->getResult();
        }
        return $result;
    }