public Builder shape(Shape encounteredShape) {
            return sourceLocation(Objects.requireNonNull(encounteredShape).getSourceLocation())
                    .shapeId(encounteredShape.getId());
        }
Sets the shape ID and source location based on a shape.

@param encounteredShape Shape.
@return Returns the builder.
smithy-model/src/main/java/software/amazon/smithy/model/validation/ValidationEvent.java