private static List<String> orderClasspath(List<String> pathList,
			Map<String, GModule> modules) {

		Set<String> fatJars = modules.values()
				.stream()
				.flatMap(m -> m.getFatJars().stream())
				.collect(Collectors.toSet());

		List<String> orderedList = new ArrayList<>(pathList);

		for (String path : pathList) {
			if (fatJars.contains(new File(path).getName())) {
				orderedList.remove(path);
				orderedList.add(path);
			}
		}

		return orderedList;
	}
Updates the list of paths to make sure the order is correct for any class-loading dependencies.
 
@param pathList The list of paths to order.
@param modules The modules on the classpath.
@return A new list with the elements of the original list re-ordered as needed.
Ghidra/Framework/Utility/src/main/java/ghidra/GhidraLauncher.java