void () { doTestSingleJvmModule(); Module module = getModule(); Sdk moduleSdk = ModuleRootManager.getInstance(getModule()).getSdk(); assertNotNull("Module SDK is not defined", moduleSdk); PsiJavaModule javaModule = JavaIndicesUtils.findModuleInfoFile(myProject, module.getModuleScope()); assertNotNull(javaModule); PsiRequiresStatement stdlibDirective = JavaPsiUtils.findRequireDirective(javaModule, JavaModuleKt.KOTLIN_STDLIB_MODULE_NAME); assertNotNull("Require directive for " + JavaModuleKt.KOTLIN_STDLIB_MODULE_NAME + " is expected", stdlibDirective); long numberOfStdlib = StreamSupport.stream(javaModule.getRequires().spliterator(), false) .filter((statement) -> JavaModuleKt.KOTLIN_STDLIB_MODULE_NAME.equals(statement.getModuleName())) .count(); assertEquals("Only one standard library directive is expected", 1, numberOfStdlib); }