@SuppressWarnings("unchecked")
    public <T extends ConfigModel> List<T> getModels(Class<T> modelClass) {
        List<T> modelsOfModelClass = new ArrayList<>();

        for (ConfigModel model : configModels) {
            if (modelClass.isInstance(model))
                modelsOfModelClass.add((T)model);
        }
        return modelsOfModelClass;
    }
Initialize part 2.:
Prepare all config models for starting. Must be called after plugins are loaded and frozen.
config-model/src/main/java/com/yahoo/config/model/ConfigModelRepo.java