A method of restricting fluid flow through a passageway can include inserting a device comprising memory foam into the passageway. The expanded memory foam can have a cross-sectional profile with a shape and size to securely fit within the passageway so as to restrict fluid flow through the passageway. Additionally, the memory foam can have a receiving portion that extends from the first end to the second end that is configured for receiving an object that extends from the first end to the second end. The receiving portion can have various configurations and can include internal portions and external portions of the memory foam. The receiving portion can self-form a conduit around the object by expanding the memory foam around the object.