public FileEditorState readState(@NotNull Element sourceElement, @NotNull Project project, @NotNull VirtualFile virtualFile) {
if (virtualFile instanceof DatabaseEditableObjectFile) {
DatabaseEditableObjectFile editableObjectFile = (DatabaseEditableObjectFile) virtualFile;
DBSchemaObject object = editableObjectFile.getObject();
if (object instanceof DBDataset) {
DatasetEditorState editorState = new DatasetEditorState();
editorState.readState(sourceElement);
return editorState;
}
}
return new DatasetEditorState();
}