A question about `org.jetbrains.kotlin.idea.base.f...
# intellij
o
A question about `org.jetbrains.kotlin.idea.base.facet`: To detect a test module in an IDE plugin with Kotlin/JVM and Kotlin Multiplatform, I'm using the following:
Copy code
private fun com.intellij.openapi.module.Module.isJvmOrMultiplatformTestModule() =
    isTestModule || (!isMultiPlatformModule && name.endsWith(".test"))
However, relying on the module name seems hacky. Is there a better option?