Minor: remove warnings
More information for EA-48954
Refatoring: rewrite in PsiTreeUtil style
Refactoring: more suitable method
Make ResolveSessionForBodies.resolveToDescriptor() work for local declarations (EA-56877)

Fix (EA-56877)
Minor: annotate parameter
Buildserver auto merge