private ValidationEvent emitForConflicts(Shape shape, Map<ShapeId, List<ShapeId>> conflicts) {
        return error(shape,
                "Found conflicting traits on " + shape.getType() + " shape: "
                        + conflicts.entrySet()
                                .stream()
                                .flatMap(this::lines)
                                .sorted()
                                .collect(Collectors.joining(", ")));
    }
Validates that traits do not conflict.
smithy-model/src/main/java/software/amazon/smithy/model/validation/validators/TraitConflictValidator.java