public override IEnumerable <BeatmapStatistic> GetStatistics() { var taps = HitObjects.OfType <TapTile>(); if (taps.Any()) { yield return new BeatmapStatistic { Name = Localisation.StatsStrings.PressTiles, Content = taps.Count().ToString(), CreateIcon = () => new SpriteIcon { Icon = FontAwesome.Solid.Circle } } } ; var holds = HitObjects.OfType <HoldTile>(); if (holds.Any()) { yield return new BeatmapStatistic { Name = Localisation.StatsStrings.HoldTiles, Content = holds.Count().ToString(), CreateIcon = () => new SpriteIcon { Icon = FontAwesome.Solid.HandHolding } } } ; var spins = HitObjects.OfType <SpinTile>(); if (spins.Any()) { yield return new BeatmapStatistic { Name = Localisation.StatsStrings.SpinTiles, Content = spins.Count().ToString(), CreateIcon = () => new SpriteIcon { Icon = FontAwesome.Solid.RedoAlt } } } ; } } }