void (String moduleName, Scope scope, Type type, String... expectedPaths) { createOutputDirectories(); Module module = getModule(moduleName); GlobalSearchScope searchScope = switch (scope) { case MODULE -> module.getModuleScope(); case COMPILE -> module.getModuleWithDependenciesAndLibrariesScope(type == Type.TESTS); case RUNTIME -> module.getModuleRuntimeScope(type == Type.TESTS); }; assertSearchScope(searchScope, expectedPaths); }