How to enable and disable specific lines in v6

I found a method to do this in v5 Enable and disable specific lines.
But I don’t know how to do this in v6.
Any suggestion will be appreciated!

The equivalent to beforeChange is changeFilter, and the equivalent to origin on changes is the userEvent annotation.

Thank you! :heart: