Could you add JSDocs for this function and `_showReplaceAllPanel`.