void (JList list, Runnable selectAction) { JBPopupFactory.getInstance().createListPopupBuilder(list). setTitle(IdeBundle.message("popup.title.import.scheme")). setItemChosenCallback(selectAction). createPopup(). showInCenterOf(myParent); }