Store resolution context for light classes to prevent back-end fail

 #EA-56152 Fixed
Refactoring: move file
Convert to Kotlin
Always check kotlin file is in correct source root for gradle modules
Refactoring: rename method and hide information about gradle
Refactoring: remove usages with default value from overload
Share check "is file under source roots"