pub(super) fn validate_component<T: DowncastType + ValidatePersistentComponent>( data: &ComponentData, ) -> Result<()>