private static Path stripFileEnding(Path path) {
        int dotIndex = path.last().lastIndexOf(".");
        if (dotIndex <= 0) return path;
        return path.withLast(path.last().substring(0, dotIndex));
    }
Returns an immutable collection of all the imported models
model-integration/src/main/java/ai/vespa/rankingexpression/importer/configmodelview/ImportedMlModels.java