private void PutPhrasesToQueue(int startIndex, int endIndex)
 {
     foreach (var phrase in _phraseGenerator.GetUniquePhrases(startIndex, endIndex))
     {
         try
         {
             _phrasesToCheck.Add(phrase);
         }
         catch (InvalidOperationException)
         {
             break;
         }
     }
 }