Hi,
thanks for your contribution.
you define your variable behavior using the attribute:
[UIHint(UIHint.Variable)]
simply look it up any actions you have on your project that "get" something.
typically, I never remember all these attributes, and everytime I create a new action, I duplicate one that is the closest, and so for your case, you could study actions like getChildCount for example.
Bye,
Jean