public PaginatedTrait getPaginatedTrait() {
        return paginatedTrait.merge(service.getTrait(PaginatedTrait.class).orElse(null));
    }
Gets the paginated trait of the operation merged with the service.

@return Returns the resolved paginated trait.
smithy-model/src/main/java/software/amazon/smithy/model/knowledge/PaginationInfo.java