private static <T> void prioritizeClasses(List<Class<? extends T>> list) {
		Collections.sort(list, (c1, c2) -> {
			// Sort classes primarily by priority and secondarily by name
			int p1 = ExtensionPointProperties.Util.getPriority(c1);
			int p2 = ExtensionPointProperties.Util.getPriority(c2);
			if (p1 > p2) {
				return -1;
			}
			if (p1 < p2) {
				return 1;
			}
			return c1.getName().compareTo(c2.getName());
		});
	}
Sorts the given {@link List} of {@link Class}es first by their defined priority, then by
their name.

@param list The {@link List} of {@link Class}es to sort. This {@link List} will be modified.
Ghidra/Framework/Generic/src/main/java/ghidra/util/classfinder/ClassSearcher.java