public static WriteShareGroupStateParameters from(WriteShareGroupStateRequestData data) {
        return new Builder()
                .setGroupTopicPartitionData(new GroupTopicPartitionData<>(data.groupId(), data.topics().stream()
                        .map(writeStateData -> new TopicData<>(writeStateData.topicId(),
                                writeStateData.partitions().stream()
                                        .map(partitionData -> PartitionFactory.newPartitionStateBatchData(partitionData.partition(), partitionData.stateEpoch(), partitionData.startOffset(),
                                                partitionData.leaderEpoch(),
                                                partitionData.stateBatches().stream()
                                                        .map(PersisterStateBatch::from)
                                                        .collect(Collectors.toList())))
                                        .collect(Collectors.toList())))
                        .collect(Collectors.toList())))
                .build();
    }
This class contains the parameters for {@link Persister#writeState(WriteShareGroupStateParameters)}.
server-common/src/main/java/org/apache/kafka/server/group/share/WriteShareGroupStateParameters.java