@Nonnull
	@Override
	protected List<T> adaptCurrentSelection() {
		return tree.getSelectionModel().getSelectedItems().stream()
				.map(TreeItem::getValue)
				.toList();
	}
@param consumer
		Consumer to run when user accepts selected items.
recaf-ui/src/main/java/software/coley/recaf/ui/control/popup/ItemTreeSelectionPopup.java