public IReadOnlyList <PlanetData> GetVisiblePlanets(IAABBox viewBBox) { mVisiblePlanets.Clear(); mNodeVisitor.Clear(); mRootNodeProvider.GetRootNote().VisitVisibleNodes(viewBBox, mNodeVisitor); var leafCollection = mNodeVisitor.GetVisibleLeaves(); for (int i = 0; i < leafCollection.Count; ++i) { // ReSharper disable once AssignNullToNotNullAttribute InspectLeaf(leafCollection[i], viewBBox); } return(mVisiblePlanets); }