private List<IParaFragment> UpdateConcordanceForTag(int ws)
{
// Find analyses that have the relevant morpheme.
var matchedTags = new HashSet<ITextTag>();
var hvoPossToMatch = GetHvoOfListItemToMatch(ws);
var tagRepo = m_cache.ServiceLocator.GetInstance<ITextTagRepository>();
foreach (var tagInstance in tagRepo.AllInstances())
{
// LT-10312 reopened: BestAnalysisAlternative is how we build the chooser list,
// but now we want to search by possibility item, not by string matching.
if (tagInstance.IsValidRef && tagInstance.TagRA != null
&& hvoPossToMatch == tagInstance.TagRA.Hvo)
{
matchedTags.Add(tagInstance);
}
}
return GetParaFragmentsOfTags(matchedTags);
}