void (Consumer<? super Set<T>> callback) { myBuilder.setItemChosenCallback(() -> { List<T> list = myList.getSelectedValuesList(); callback.consume(list != null ? new HashSet<>(list) : Collections.emptySet()); }); }