public static IndexReaderContext getTopLevelContext(IndexReaderContext context) {while (context.parent != null) {context = context.parent;}return context;}
public static IndexReaderContext GetTopLevelContext(IndexReaderContext context){while (context.Parent != null){context = context.Parent;}return context;}