@Override
	public void clearCheckout() throws IOException {
		if (isVersioned) {
			throw new UnsupportedOperationException(
				"clearCheckout is not applicable to versioned item");
		}
		if (fileSystem.isReadOnly()) {
			throw new ReadOnlyException();
		}
		synchronized (fileSystem) {
			privateDb.updateCheckoutCopy(); // removes change data
			super.clearCheckout();
		}
	}
<code>LocalVersionedDbListener</code> provides a listener 
which maintains checkout and history data in response to 
VersionedDatabase callbacks.
Ghidra/Framework/FileSystem/src/main/java/ghidra/framework/store/local/LocalDatabaseItem.java