public static List<GTreeNode> createNodesFromFileList(List<GFile> files, TaskMonitor monitor) {
		files = new ArrayList<>(files);
		Collections.sort(files, FSUtilities.GFILE_NAME_TYPE_COMPARATOR);

		List<GTreeNode> nodes = new ArrayList<>(files.size());
		for (GFile child : files) {
			FSBFileNode node = createNodeFromFile(child, monitor);
			nodes.add(node);
		}
		return nodes;
	}
Helper method to convert {@link GFile} objects to FSBNode objects.

@param files {@link List} of {@link GFile} objects to convert
@param monitor {@link TaskMonitor}
@return {@link List} of {@link FSBNode} instances (return typed as a GTreeNode list),
specific to each GFile instance's type.
Ghidra/Features/Base/src/main/java/ghidra/plugins/fsbrowser/FSBNode.java