collect PSI search stuff into one place, add comments
Merge pull request #24 from parrt/organize-tree-search

collect PSI search stuff into one place, add comments