Add tests on TreeItemController
Remove unused method matches() and refactor others
Cleanup: move method raiseVisibility()

Method raiseVisibility() must belong to TreeItemController because it
works with its inner structures.
Simplify method getSignature()
Cleanup: do not transfer Account parameters directly to ConsoleManager
Cleanup: make fields final
Cleanup: remove redundant variable
Cleanup: drop dead code
Cleanup: remone unnesessary boxing/unboxing
Cleanup: drop unused variable
Cleanup: simplify variable creation
Cleanup: remove some 'throws Exception' from method signatures
Cleanup: additional fixes for sonar
Cleanup: minor style fixes