return new TreeBasedStructureViewBuilder() {
@NotNull
public StructureViewModel createStructureViewModel() {
// Structure does not change. so it can be cached.
if (structureViewModel == null) {
structureViewModel = new DatasetEditorStructureViewModel(DatasetEditor.this);
}
return structureViewModel;
}
};
}