protected void updatePastListing(@Nonnull Button button, @Nonnull ObservableList<String> list, @Nonnull CustomTextField input) {
		list.addListener((ListChangeListener<String>) c -> {
			List<ActionMenuItem> items = list.stream()
					.map(text -> new ActionMenuItem(text, () -> {
						input.setText(text);
						requestSearchFocus();
					}))
					.toList();
			if (items.isEmpty()) {
				button.setDisable(true);
			} else {
				button.setDisable(false);
				ContextMenu contextMenu = new ContextMenu();
				contextMenu.getItems().setAll(items);
				button.setOnMousePressed(e -> contextMenu.show(button, e.getScreenX(), e.getScreenY()));
			}
		});
	}
When the past items list is updated, update the menu that fills in the input with the selected old entry.

@param button
		Button to show the list.
@param list
		Source list to pull values from.
@param input
		Input to apply text to.
recaf-ui/src/main/java/software/coley/recaf/ui/control/AbstractSearchBar.java