def METHOD_NAME(self, tree):
    # Search the node tree for any python file nodes. Any that we find are PFMs
    for i in tree.nodes:
        if i.bl_idname == "PlasmaPythonFileNode":
            if i.filename and i.text_id:
                self._pfms.setdefault(i.filename, i.text_id)