[devkit] improve performance a little in ContentModuleVisibilityInspection (IJPL-209927)

GitOrigin-RevId: fe4719ff7ba06fdeb38baff8e933c9aa67c62b42
This commit is contained in:
Nikolay Chashnikov
2025-10-16 13:10:25 +00:00
committed by intellij-monorepo-bot
parent acb879ca86
commit 8ab60bc079
@@ -34,7 +34,7 @@ import org.jetbrains.idea.devkit.util.DescriptorUtil
internal class ContentModuleVisibilityInspection : DevKitPluginXmlInspectionBase() {
private val rootPluginNames = IntelliJPlatformProduct.entries.map { "${it.platformPrefix}Plugin.xml" }
private val rootPluginNames by lazy { IntelliJPlatformProduct.entries.mapTo(HashSet()) { "${it.platformPrefix}Plugin.xml" } }
override fun checkDomElement(element: DomElement, holder: DomElementAnnotationHolder, helper: DomHighlightingHelper) {
val dependencyModule = element as? DependencyDescriptor.ModuleDescriptor ?: return