private void filter() {
			Language selectedLang = getSelectedLanguage();
			displayList.clear();
			if (filter == null) {
				displayList.addAll(Arrays.asList(masterList));
			}
			else {
				for (LanguageDescription element : masterList) {
					if (matchesFilter(element.getLanguageID().getIdAsString()) ||
						matchesFilter(element.getProcessor().toString())) {
						displayList.add(element);
					}
				}
			}

			fireTableDataChanged();
			setSelectedLanguage(selectedLang);
		}
Select the highest priority language being displayed.
If more than one language has the highest priority, then the first
one will be used.
Ghidra/Features/Base/src/main/java/ghidra/app/util/bean/SelectLanguagePanel.java