The material in the scene is not updated when FBX is replaced

Prefab does not update the material in a scene if its FBX has been replaced by a FBX with renamed material.

I created a new import where the imported FBX data is transferred to the project and the original FBX itself is deleted. Meshes are transferred to the .asset container, materials are externalized. After the import, a prefab is created from the FBX with references to the meshes from the container.