private void showBalloon(Editor editor, @NotNull @NlsSafe String replacementPreviewText) {
    if (ApplicationManager.getApplication().isUnitTestMode()) {
      myReplacementPreviewText = replacementPreviewText;
      return;
    }

    myReplacementBalloon = UsagePreviewPanel.createPreviewBalloon(UsagePreviewPanel.createPreviewHtml(replacementPreviewText));
    EditorUtil.disposeWithEditor(editor, myReplacementBalloon);
    myReplacementBalloon.show(new ReplacementBalloonPositionTracker(editor), Balloon.Position.below);
  }
private void showBalloon(Editor editor, @NotNull @NlsSafe String replacementPreviewText)