void (PopupMenuEvent e) { List<String> history = historyProvider.produce(); setHistory(textFieldWithHistory, ContainerUtil.notNullize(history), true); // one-time initialization textFieldWithHistory.removePopupMenuListener(this); }