void checkInUse(int version) throws FileInUseException {
		synchronized (fileSystem) {
			if (checkoutMgr != null) {
				boolean isCheckedOut;
				try {
					isCheckedOut = checkoutMgr.isCheckedOut(version);
				}
				catch (IOException e) {
					throw new FileInUseException(getName() + " versioning error", e);
				}
				if (isCheckedOut) {
					throw new FileInUseException(
						getName() + " version " + version + " is checked out");
				}
			}
			else if (!isVersioned && getCheckoutId() != DEFAULT_CHECKOUT_ID) {
				throw new FileInUseException(getName() + " is checked out");
			}
		}
	}
Verify that the specified version of this item is not in use.
@param version the specific version to check for versioned items.
@throws FileInUseException
Ghidra/Framework/FileSystem/src/main/java/ghidra/framework/store/local/LocalFolderItem.java