private static List<Schema> keep(Set<String> names, Collection<Schema> schemas) {
            return schemas.stream().filter(schema -> names.contains(schema.name())).toList();
        }
Given a search list which is a mixture of schemas and cluster
names, and a restrict list which is a list of schemas, return a
set of all valid schemas for this combination.

@return the possibly empty list of schemas matching the arguments
container-search/src/main/java/com/yahoo/search/schema/SchemaInfo.java