public virtual void AddFacetCount(BytesRef facetValue, int count){if (count < currentMin){return;}FacetEntry facetEntry = new FacetEntry(facetValue, count);if (facetEntries.Count == maxSize){if (!facetEntries.TryGetSuccessor(facetEntry, out FacetEntry _)){return;}var max = facetEntries.Max;if (max != null)facetEntries.Remove(max);}facetEntries.Add(facetEntry);if (facetEntries.Count == maxSize){var max = facetEntries.Max;currentMin =  max != null ? max.Count : 0;}}