private void addSource(Path path) {
        if (Files.isRegularFile(path) && !VALID_MODELS.matches(path.getFileName())) {
            LOGGER.warning("Omitting unsupported Smithy model file from model sources: " + path);
        } else {
            sources.add(path.toAbsolutePath());
        }
    }
Sets the <strong>required</strong> configuration object used to
build the model.

@param config Configuration to set.
@return Returns the builder.
smithy-build/src/main/java/software/amazon/smithy/build/SmithyBuild.java