private void doShowPopup() {
    if (ApplicationManager.getApplication() != null &&
        JBPopupFactory.getInstance() != null &&
        isShowing()) {
      final JList<String> list = new JBList<>(myModel);
      final Runnable chooseRunnable = createItemChosenCallback(list);
      myPopup = JBPopupFactory.getInstance().createListPopupBuilder(list)
        .setMovable(false)
        .setRequestFocus(true)
        .setItemChosenCallback(chooseRunnable)
        .setSelectionMode(ListSelectionModel.SINGLE_SELECTION)
        .setAccessibleName(UIBundle.message("search.text.field.history.popup.accessible.name"))
        .createPopup();
      AlignedPopup.showUnderneathWithoutAlignment(myPopup, getPopupLocationComponent());
    }
  }
private void doShowPopup()