public static function findFilters($om, array $filters, $all = false)
    {
        if (!$om instanceof EntityManagerInterface || (empty($filters) && !$all)) {
            return [];
        }

        $all = ($all && !empty($filters)) ? false : $all;
        $enabledFilters = self::getEnabledFilters($om);

        return self::doFindFilters($filters, $enabledFilters, $all);
    }