private ValidationEvent createEvent(ServiceShape service, Trait protocol, Set<Shape> foundDocuments) {
        StringJoiner joiner = new StringJoiner(", ", "[", "]");
        for (Shape document : foundDocuments) {
            joiner.add(document.getId() + " @ " + document.getSourceLocation());
        }

        return error(service,
                protocol,
                String.format(
                        "This service uses the `%s` protocol which does not support inline document types, "
                                + "but the following document types were found in the closure of the service: %s",
                        protocol.toShapeId(),
                        joiner.toString()));
    }
Detects when a protocol indicates that it does not support inline documents,
yet the protocol trait is attached to a service that uses inline documents.
smithy-model/src/main/java/software/amazon/smithy/model/validation/validators/NoInlineDocumentSupportValidator.java