Refactor: Simplified and generalized the method getMaterialNameByM3MaterialReference