@Nullable
	private String interceptDirectoryName(@Nullable String directory) {
		if (directory == null)
			return null;
		List<String> split = StringUtil.fastSplit(directory, true, '/');
		int max = explorerConfig.getMaxTreeDirectoryDepth();
		if (split.size() > max)
			return StringUtil.cutOffAtNth(directory, '/', max) + "...";
		return directory;
	}
@param directory
		Input package or directory name.

@return Filtered name to prevent bogus paths with thousands of embedded directories.
recaf-ui/src/main/java/software/coley/recaf/ui/control/tree/WorkspaceRootTreeNode.java