Hello,
I use a custom statsFormatter, that is loaded dynamically (its a token counter, heavy init), once it finishes loading, I currently have to call private function _updateStats()
my suggestion is to modify showStats(show)
showStats(show), add conditional, if this.statsBar then just this._updateStats(); (pseudo code)
That way I can avoid calling _updateStats(), and can just call showStats()