docs: @Deprecated
    public Set<DataSegment> getInsertedSegments(final String taskid)
    {
      final Set<DataSegment> segments = new HashSet<>();
      for (final TaskAction action : storage.getAuditLogs(taskid)) {
        if (action instanceof SegmentInsertAction) {
          segments.addAll(((SegmentInsertAction) action).getSegments());
        } else if (action instanceof SegmentTransactionalInsertAction) {
          segments.addAll(((SegmentTransactionalInsertAction) action).getSegments());
        }
      }
      return segments;
    }