int getVersion() {
		synchronized (fileSystem) {
			try {
				if (folderItem != null) {
					if (folderItem.isCheckedOut()) {
						return folderItem.getCheckoutVersion();
					}
					return folderItem.getCurrentVersion();
				}
				return versionedFolderItem.getCurrentVersion();
			}
			catch (IOException e) {
				Msg.error(this, "IO error", e);
				return -1;
			}
		}
	}
Return either the latest version if the file is not checked-out or the version that
was checked-out or a specific version that was requested.
@return the version
Ghidra/Framework/Project/src/main/java/ghidra/framework/data/GhidraFileData.java