@Nonnull
	public static ItemTreeSelectionPopup<String> forPackageNames(@Nonnull ClassBundle<?> bundle,
																 @Nonnull Consumer<List<String>> packageConsumer) {
		Set<String> packages = new TreeSet<>();
		packages.add(""); // Empty package
		for (String className : bundle.keySet()) {
			int slash = className.lastIndexOf('/');
			if (slash > 0) packages.add(className.substring(0, slash));
		}
		ItemTreeSelectionPopup<String> popup = new ItemTreeSelectionPopup<>(packageConsumer);
		buildTreeOfStringPaths(popup, packages);
		return popup;
	}
@param bundle
		Target bundle to pull packages from.
@param packageConsumer
		Action to run on accepted packages.

@return Popup for package names.
recaf-ui/src/main/java/software/coley/recaf/ui/control/popup/ItemTreeSelectionPopup.java