public void save() throws IOException {

		if (file == null) {
			throw new IllegalStateException("Output File was not specified: call saveAs(String)");
		}

		try {
			((PackedDBHandle) dbHandle).save(TaskMonitor.DUMMY);
		}
		catch (CancelledException e) {
			// Cancel can't happen because we are using a dummy monitor
		}
		finally {
			clearUndo();
		}
	}
Save the category to source file.
@throws IOException if IO error occurs
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/FileDataTypeManager.java