private static String getExtensionName(String fullPath) {

		if (!fullPath.startsWith(EXTENSIONS_PATH_PREFIX)) {
			return "";
		}

		int start = EXTENSIONS_PATH_PREFIX.length() + 1;
		int slashIndex = fullPath.indexOf("/", start);
		if (slashIndex < 0) {
			return ""; // no folder; shouldn't happen
		}

		// return the first folder name, which is the extension name
		return fullPath.substring(start, slashIndex) + ": ";
	}
Class for action to open a recently opened data type archive.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/datamgr/actions/RecentlyOpenedArchiveAction.java