@Override
					public Collection<String> computeCompletions(String text) {
						Set<String> matching = new TreeSet<>();
						for (String s : strings) {
							if (s.startsWith(text)) {
								matching.add(s.substring(text.length()));
							}
						}
						return matching;
					}
A demonstration of the autocompleter on a single text field.

<p>
The autocompleter offers the tails from a list of strings that start with the text before the
caret.
Ghidra/Framework/Docking/src/main/java/docking/widgets/autocomplete/TextFieldAutocompleter.java