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