I solved it as follows: I declare the dependency as optional in plugin.xml, I specify an empty json.xml
<!-- plugin.xml -->
<depends config-file="json.xml" optional="true">com.intellij.modules.json</depends>
<!-- json.xml -->
<idea-plugin require-restart="false">
<extensions defaultExtensionNs="com.intellij">
</extensions>
</idea-plugin>
but I do not declare com.intellij.modules.json in bundledPlugins() bundledPlugins(“com.intellij.modules.json”)