public void savePreferences() {
		if (!(columnModel instanceof GTableColumnModel)) {
			throw new AssertException(
				"Saving preferences has no effect if not using a GTableColumnModel");
		}
		((GTableColumnModel) columnModel).saveState();
	}
Signals that the preferences of this table (visible columns, sort order, etc.) should be
saved.  Most clients never need to call this method, as changes are saved for free when
the user manipulates columns.  However, sometimes the client can change the state of the
columns programmatically, which is not guaranteed to get saved; for example, setting
the sort state of a sorted table model programmatically will not get saved.
Ghidra/Framework/Docking/src/main/java/docking/widgets/table/GTable.java