private void chooseAndImport(Editor editor) {
    JBPopupFactory.getInstance()
      .createPopupChooserBuilder(getCandidates())
      .setRenderer(new MethodCellRenderer(true))
      .setTitle(QuickFixBundle.message("static.import.method.choose.method.to.import"))
      .setMovable(true)
      .setItemChosenCallback((selectedValue) -> {
        LOG.assertTrue(selectedValue.isValid());
        doImport(selectedValue);
      })
      .createPopup()
      .showInBestPositionFor(editor);
  }
private void chooseAndImport(Editor editor)