void () { if (ApplicationManager.getApplication().isUnitTestMode()) { myReplacementPreviewText = null; return; } if (myReplacementBalloon != null) { myReplacementBalloon.hide(); myReplacementBalloon = null; } removeVisibleAreaListener(); }