I believe Rick.Brown answered your question. And, his code snippet is accurate As-Is.
Properties and values are stored as key/value pairs. The "testExec" object (that keeps track of these properties) is exposed to your beanshell logic by DevTest so no import is required.
What classes were you thinking that you need?
Replace Rick's use of "propertyName" in the getStateString method with the property name of your existing Filter.
In the setStateString method replace "propertyName" with the name you want assigned to your new property and ensure variableName holds the value you want assigned. This action will create a new key/value pair.
Once assigned, you can access your new property using {{ }} notation or via testExec.getStateValue("yourNewProp");
You will also see your new property in the Properties tab within ITR mode when you execute your test.