private String addSchemaFromStringWithFileName(String input, String fileName) throws ParseException {
        var parsed = addSchemaFromString(input);
        String nameFromFile = baseName(fileName);
        if (! parsed.name().equals(nameFromFile)) {
            throw new IllegalArgumentException("The file containing schema '"
                                               + parsed.name() + "' must be named '"
                                               + parsed.name() + ApplicationPackage.SD_NAME_SUFFIX
                                               + "', but is '" + stripDirs(fileName) + "'");
        }
        return parsed.name();
    }
Class wrapping parsing of schema files and holding a collection of
schemas in the intermediate format.

@author arnej27959
config-model/src/main/java/com/yahoo/schema/parser/IntermediateCollection.java