Thank you for the answers. I didn't know about Context items, might be I overlooked them in documentation.
Anyway, I might have been not clear enough in what I wrote.
What I want to do, except for what you wrote, which was very good help, is to make my addin expand a whole list with just one click.
I have such structure (took from example):

All items here are expanded - I had to manually click at first Domain Specific Modeling, than GML, than ApplicationSchema and then DataType to expand sublists. So i made 4 clicks. If wanted to expand all elements in this tree, I would have to expand FeatureType, CodeList.. Than in higher level, I'd have to click WSDL item and repeat procedure. For big projects it's a bit annoying - we have a really big model in company, so making 1000 clicks is no fun. What I want do do is to make an addin, which will do what I wrote with just one click, so MyAddin -> Expand whole tree and tadaa, 1000 clicks done with one.
Is it possible to write such addin?
Thank you in advance,
Konrad