protected static function filterLists($lists, $policy)
    {
        $res = array();
        foreach ($lists as $name => $path) {
            if ((bool) preg_match($policy, $name)) {
                $res[$name] = $path;
            }
        }
        return $res;
    }