@Nonnull
	public static ItemTreeSelectionPopup<String> forDirectoryNames(@Nonnull FileBundle bundle,
																   @Nonnull Consumer<List<String>> directoryConsumer) {
		Set<String> directories = new TreeSet<>();
		directories.add(""); // Empty directory
		for (String fileName : bundle.keySet()) {
			int slash = fileName.lastIndexOf('/');
			if (slash > 0) directories.add(fileName.substring(0, slash));
		}
		ItemTreeSelectionPopup<String> popup = new ItemTreeSelectionPopup<>(directoryConsumer);
		buildTreeOfStringPaths(popup, directories);
		return popup;
	}
@param bundle
		Target bundle to pull directories from.
@param directoryConsumer
		Action to run on accepted directories.

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