@Override
	public void terminateCheckout(long checkoutId, boolean notify) throws IOException {
		if (!isVersioned) {
			throw new UnsupportedOperationException("Non-versioned item does not support checkout");
		}
		if (fileSystem.isReadOnly()) {
			throw new ReadOnlyException();
		}
		synchronized (fileSystem) {
			ItemCheckoutStatus coStatus = checkoutMgr.getCheckout(checkoutId);
			if (coStatus == null) {
				throw new IOException("Invalid checkout ID");
			}
			if (checkoutId == checkinId) {
				throw new IOException("Checkin is in-progress");
			}
			checkoutMgr.endCheckout(checkoutId);
		}
		if (notify) {
			fireItemChanged();
		}
	}
@see ghidra.framework.store.FolderItem#setReadOnly(boolean)
Ghidra/Framework/FileSystem/src/main/java/ghidra/framework/store/local/LocalFolderItem.java