private void updateRecentLabels(String label) {
		if (!recentLabels.contains(label)) {
			recentLabels.add(0, label);
			int size = recentLabels.size();
			if (size > MAX_RETENTION) {
				recentLabels.remove(size - 1);
			}
		}
	}
Define the Main panel for the dialog here.
Ghidra/Features/Base/src/main/java/ghidra/app/util/AddEditDialog.java