ea466353fb
Instead, check the refiner from the DI-container or refiner from capability of a module descriptor. The reason is because in the IDE there might be multiple ResolutionFacades (-> multiple DI-containers -> multiple module descriptors) for one and the same IDE module, with different refinement settings. However, due to how the code is written, it's hard to have different LanguageVersionSettings for one and the same module. After this commit the refinement settings are determined by the moduleDescriptor capabilities, which is much easier to tweak See usage of that change in Kotlin IDE Plugin (commit is linked to the YT issue) ^KTIJ-20775