private static List<ConfigChangeAction> validateDocumentDatabases(ContentCluster currentCluster,
                                                                      ContentCluster nextCluster,
                                                                      DeployState deployState)
    {
        List<ConfigChangeAction> result = new ArrayList<>();
        for (DocumentDatabase currentDb : getDocumentDbs(currentCluster.getSearch().getSearchCluster())) {
            String docTypeName = currentDb.getName();
            var nextDb = nextCluster.getSearch().getSearchCluster().getDocumentDB(docTypeName);
            if (nextDb != null) {
                result.addAll(validateDocumentDatabase(currentCluster, nextCluster, docTypeName,
                                                       currentDb, nextDb, deployState));
            }
        }
        return result;
    }
Validates the changes between all current and next indexed search clusters in a vespa model.

@author geirst
config-model/src/main/java/com/yahoo/vespa/model/application/validation/change/IndexedSearchClusterChangeValidator.java