it would be better to change `extends Panel` to `extends GenericPanel<T>` and use `T` as model type.