public static ReadShareGroupStateSummaryResult from(ReadShareGroupStateSummaryResponseData data) {
        return new Builder()
                .setTopicsData(data.results().stream()
                        .map(readStateSummaryResult -> new TopicData<>(readStateSummaryResult.topicId(),
                                readStateSummaryResult.partitions().stream()
                                        .map(partitionResult -> PartitionFactory.newPartitionStateErrorData(
                                                partitionResult.partition(), partitionResult.stateEpoch(), partitionResult.startOffset(), partitionResult.errorCode(), partitionResult.errorMessage()))
                                        .collect(Collectors.toList())))
                        .collect(Collectors.toList()))
                .build();
    }
This class contains the result from {@link Persister#readSummary(ReadShareGroupStateSummaryParameters)}.
server-common/src/main/java/org/apache/kafka/server/group/share/ReadShareGroupStateSummaryResult.java