holderOf static method
What holds entity's material file — its shape, else its model —
or null when it draws nothing a material file can go on.
Implementation
static Component? holderOf(Entity entity) =>
entity.getComponent<Primitive3D>() ?? entity.getComponent<ModelComponent>();