private int getDefaultColumnCount() {

		TableModel tableModel = table.getUnwrappedTableModel();
		if (tableModel instanceof VariableColumnTableModel) {
			VariableColumnTableModel variableTableModel = (VariableColumnTableModel) tableModel;
			// VariableColumnTableModels have default columns and 'found' columns.  We only want to
			// create a key based upon the default columns
			return variableTableModel.getDefaultColumnCount();
		}
		return tableModel.getColumnCount();
	}
This method will return a string key that uniquely describes a table model and its
*default* columns (those initially added by the model) so that settings for column state
can be persisted and retrieved.
Ghidra/Framework/Docking/src/main/java/docking/widgets/table/TableColumnModelState.java