public static ReadShareGroupStateResult from(ReadShareGroupStateResponseData data) {
        return new Builder()
                .setTopicsData(data.results().stream()
                        .map(topicData -> new TopicData<>(topicData.topicId(),
                                topicData.partitions().stream()
                                        .map(partitionResult -> PartitionFactory.newPartitionAllData(
                                                partitionResult.partition(),
                                                partitionResult.stateEpoch(),
                                                partitionResult.startOffset(),
                                                partitionResult.errorCode(),
                                                partitionResult.errorMessage(),
                                                partitionResult.stateBatches().stream()
                                                        .map(PersisterStateBatch::from)
                                                        .collect(Collectors.toList())
                                        ))
                                        .collect(Collectors.toList())))
                        .collect(Collectors.toList()))
                .build();
    }
This class contains the result from {@link Persister#readState(ReadShareGroupStateParameters)}.
server-common/src/main/java/org/apache/kafka/server/group/share/ReadShareGroupStateResult.java