Are you stuck on a legacy project and want to use some more modern components. Well here is a multiselect with autocomplete.
List<String> elements = new ArrayList<>();
elements.add("Berlin");
StringMultiSelect example = new StringMultiSelect("Citys:", elements, new ArrayList<>());