Hello!
Before 2025.3 it was possible to programmatically verify that the optional plugin is enabled, loaded and activated, but since 2025.3 the following verification seems to be incomplete and results to false-positive evaluation of the plugin state:
val pluginId = PluginId.getId("com.intellij.spring")
PluginManagerCore.isLoaded(pluginId) && !PluginManagerCore.isDisabled(pluginId)
Despite the fact that Spring plugin is loaded and active, its classes are not visible when User has no active subscription yet.