public DatasetEditorModel(DatasetEditor datasetEditor) throws SQLException {
   super(datasetEditor.getConnectionHandler());
   this.datasetEditor = datasetEditor;
   this.datasetRef = DBObjectRef.from(datasetEditor.getDataset());
   this.settings = DataEditorSettings.getInstance(datasetEditor.getProject());
   setHeader(new DatasetEditorModelHeader(datasetEditor, null));
 }
 @Nullable
 public DBDataset getDataset() {
   return DBObjectRef.get(datasetRef);
 }