What would cause 'java.lang.RuntimeException: Name is missed' runtime exception?

I’ve added a new globalInspection and externalAnnotator which returns the short name of the global inspection from getPairedBatchInspectionShortName(). These are both working very nicely now, but I noticed that inspection profiles were getting corrupted at runtime along with the following in idea.log:

2025-05-14 16:36:28,762 [2758838] SEVERE - #c.i.c.ComponentStoreImpl - Cannot read scheme C:\Users\Scott\dev\projects\ic-test-projects\apex-recipes\.idea\inspectionProfiles\Illuminated_Cloud_with_PMD.xml
java.lang.RuntimeException: Name is missed:
<component name="InspectionProjectProfileManager">
<profile version="1.0" is_locked="true">
...
</profile>
</component>
	at com.intellij.configurationStore.schemeManager.SchemeManagerUtilKt.nameIsMissed(schemeManagerUtil.kt:25)
	at com.intellij.configurationStore.schemeManager.SchemeLoader.loadScheme(schemeLoader.kt:173)
	at com.intellij.configurationStore.schemeManager.SchemeManagerImpl.loadSchemes(SchemeManagerImpl.kt:265)
	at com.intellij.profile.codeInspection.ProjectInspectionProfileManager.initializeComponent(ProjectInspectionProfileManager.kt:96)
	at com.intellij.configurationStore.ComponentStoreImpl.initComponent(ComponentStoreImpl.kt:164)
	at com.intellij.configurationStore.ComponentStoreWithExtraComponents.initComponent(ComponentStoreWithExtraComponents.kt:46)
	at com.intellij.serviceContainer.ComponentManagerImpl.initializeService$intellij_platform_serviceContainer(ComponentManagerImpl.kt:654)
	at com.intellij.serviceContainer.ServiceInstanceInitializer.createInstance$lambda$1$lambda$0(ServiceInstanceInitializer.kt:69)
	at com.intellij.platform.instanceContainer.instantiation.InstantiateKt.withStoredTemporaryContext(instantiate.kt:306)
	at com.intellij.serviceContainer.ServiceInstanceInitializer.createInstance$suspendImpl(ServiceInstanceInitializer.kt:68)
	at com.intellij.serviceContainer.ServiceInstanceInitializer.createInstance(ServiceInstanceInitializer.kt)
	...

Unfortunately I can’t view the source for SchemaManagerUtilKt#nameIsMissed() or even set a method breakpoint.

Any idea what’s going on here or how to address it?

It just builds the exception message

The XML file may be corrupted forever due to the short name missing at some point during development? Try removing the XML

I think you may be right. I removed some inspection profiles that existed during development and am creating them from scratch, and I’m no longer seeing the issue. More testing and verification required, but hopefully this was just due to a dirty intermediate state that had persisted. Thanks for the response and thoughts!