Copying filters from one Revit document to another

Would you by chance be willing to share the full code for this?