Test completion for code fragments in context of library source
KotlinCacheService: Correctly deal with code fragments in getLazyResolveSession()

Fix completion in code fragments in context of library source
Minor: rename
Minor: extract function
JetPositionManager: restrict scope of type mapper
Extract attachment helper to a separate file

Improve logic for a nonphysical file
Debugger: log error on evaluating fragment with non-kotlin context
Use PsiElement#getResolveScope() instead of custom helper

Fix extensions and types completion completion in code fragments in context of library source files
Also affects completion in files not in our project (not tested)