private static void buildTreeOfStringPaths(@Nonnull ItemTreeSelectionPopup<String> popup, @Nonnull Set<String> paths) {
		TreeItem<String> rootItem = new TreeItem<>();
		for (String pathName : paths) {
			TreeItem<String> path = rootItem;
			String[] parts = pathName.split("/", -1);
			StringBuilder pathBuilder = new StringBuilder();
			for (String part : parts) {
				pathBuilder.append(part).append('/');
				String currentPath = pathBuilder.substring(0, pathBuilder.length() - 1);
				path = getOrCreateChild(path, currentPath);
			}
		}
		popup.tree.setShowRoot(false);
		popup.tree.setRoot(rootItem);
	}
Creates a tree model following a directory structure.

@param popup
		Tree selection popup to build tree within.
@param paths
		Paths making the tree, split by {@code '/'}.
recaf-ui/src/main/java/software/coley/recaf/ui/control/popup/ItemTreeSelectionPopup.java