private Optional<ResourceShape> getResource(DocGenerationContext context, Shape shape) {
        var bottomUpIndex = BottomUpIndex.of(context.model());
        return bottomUpIndex.getResourceBinding(context.settings().service(), shape);
    }
Extracts the context for the section.
@param section the section to extract the context from.
@return returns the section's context.
smithy-docgen/src/main/java/software/amazon/smithy/docgen/interceptors/NoReplaceInterceptor.java