private void writeExtraVerifyRankSetupConfig(String dir, DocumentDatabase db) throws IOException {
        List<String> config = new ArrayList<>();

        // Assist verify-ranksetup in finding the actual ONNX model files
        writeExtraVerifyRankSetupConfig(config, db.getDerivedConfiguration().getRankProfileList().getOnnxModels().asMap().values());
        writeExtraVerifyRankSetupConfig(config, db.getDerivedConfiguration().getSchema().rankExpressionFiles().expressions());

        config.sort(String::compareTo);
        String configContent = config.isEmpty() ? "" : StringUtilities.implodeMultiline(config);
        IOUtils.writeFile(dir + "verify-ranksetup.cfg", configContent, false);
    }
Validates rank setup for all content clusters (rank-profiles, index-schema, attributes configs), validation is done
by running the binary 'vespa-verify-ranksetup-bin'

@author vegardh
config-model/src/main/java/com/yahoo/vespa/model/application/validation/RankSetupValidator.java