@Override
	public int getIndexOfFirstMatchingEntry(List<Register> data, String searchText) {

		String lcSearchText = searchText.toLowerCase();
		int len = data.size();
		for (int i = 0; i < len; i++) {
			String name = data.get(i).getName();
			String lcName = name.toLowerCase();
			if (lcName.startsWith(lcSearchText)) {
				return i;
			}
		}
		return 0;
	}
The data model for {@link DropDownSelectionTextField} that allows the text field to work with
{@link Register}s.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/function/editor/RegisterDropDownSelectionDataModel.java