f19859db4e
Previously, the code was calling into TopDownAnalyzerFacadeForJVM.newModuleSearchScope, which includes AllJavaSourcesInProjectScope. This lead to .java-sources being incorrectly attributed to wrong modules in tests, which, in turn, could've introduced undesired behaviour around module-dependent checks (e.g. whether a variable is from the other module and thus can't be smartcasted)