public static DeleteShareGroupStateResult from(DeleteShareGroupStateResponseData data) {
        return new Builder()
                .setTopicsData(data.results().stream()
                        .map(deleteStateResult -> new TopicData<>(deleteStateResult.topicId(), deleteStateResult.partitions().stream()
                                .map(partitionResult -> PartitionFactory.newPartitionErrorData(partitionResult.partition(), partitionResult.errorCode(), partitionResult.errorMessage()))
                                .collect(Collectors.toList())))
                        .collect(Collectors.toList()))
                .build();
    }
This class contains the result from {@link Persister#deleteState(DeleteShareGroupStateParameters)}.
server-common/src/main/java/org/apache/kafka/server/group/share/DeleteShareGroupStateResult.java