private static String toName(File modelFile) {
        Path modelPath = Path.fromString(modelFile.toString());
        if (modelFile.isFile())
            modelPath = stripFileEnding(modelPath);
        String localPath = concatenateAfterModelsDirectory(modelPath);
        return localPath.replace('.', '_');
    }
Returns an immutable collection of all the imported models
model-integration/src/main/java/ai/vespa/rankingexpression/importer/configmodelview/ImportedMlModels.java