def METHOD_NAME(self):
    content_manager = ContentManager()
    if self.shader == 'patch':
        original_material = content_manager.find_file(self.get_string('include'))
        if not original_material:
            logger.error(f'Failed to find original material {self.get_string("include")!r}')
            return
        patched_vmt = VMT(original_material, self.get_string('include'))
        if 'insert' in self:
            patch_data = self.get('insert', {})
            patched_vmt.data.merge(patch_data)
        if 'replace' in self:
            patch_data = self.get('replace', {})
            patched_vmt.data.merge(patch_data)
        self.shader = patched_vmt.shader
        self.data = patched_vmt.data
    try:
        self._resolve_expressions(self.data)
    except Exception as ex:
        logger.exception(f"Failed to resolve expression in material", ex)