the IParagraphUnit interface could not get all the paragraphs

When I use a batch task api to develop a translation plug-in, the IParagraphUnit interface could not get all the paragraphs. who can tell me the reason.

the code is as follows:

public override void ProcessParagraphUnit(IParagraphUnit paragraphUnit)
{

int num = 9;
if (paragraphUnit.IsStructure)
{
base.ProcessParagraphUnit(paragraphUnit);
}
else
{
using (IEnumerator<ISegmentPair> enumerator = paragraphUnit.SegmentPairs.GetEnumerator())
{
//enumerator.Reset();
while (enumerator.MoveNext())
{
ISegmentPair current = enumerator.Current;
//if (!current.Properties.IsLocked && !this.IsTargetEmpty(current) && (this.__setings.IsBatchChangeStatus && current.Target.Properties.TranslationOrigin.OriginType == "mt"))
//{
// current.Target.Properties.TranslationOrigin.OriginType = "Interact";
//}
////else if (!current.Properties.IsLocked && this.IsTargetEmpty(current) && (string.IsNullOrEmpty(BatchTranslatorProcessor.GetPlainTextFromSegment(current.Target)) || string.IsNullOrWhiteSpace(BatchTranslatorProcessor.GetPlainTextFromSegment(current.Target))))
//else if (!current.Properties.IsLocked )
//{
string empty = string.Empty;
string plainTextFromSegment;
try
{
plainTextFromSegment = BatchTranslatorProcessor.GetPlainTextFromSegment(current.Source);
}
catch (Exception ex)
{
continue;
}
if (!string.IsNullOrWhiteSpace(plainTextFromSegment) && !string.IsNullOrEmpty(plainTextFromSegment))
{
//this.segPairs_in_batch.Add(current);
//this.Tr