private AnalysisOccurrence MoveVerticallyToNextAnalysis(int paragraphInd, int segmentInd, bool moveUpward)
{
var para = (IStTxtPara)RootStText.ParagraphsOS[paragraphInd];
Debug.Assert(para != null, "Tried to move to a null paragraph ind=" + paragraphInd);
ISegment seg = para.SegmentsOS[segmentInd];
Debug.Assert(seg != null, "Tried to move to a null segment ind=" + segmentInd + " in para " + paragraphInd);
// get the "next" segment with a real analysis or real translation or note
AnalysisOccurrence realAnalysis;
GetNextSegment(para, seg, moveUpward, out realAnalysis);
return realAnalysis;
}