void (ExtensionsAreaImpl area, @NotNull String pluginName, @NotNull String extensionElement) { String moduleXml = "<idea-plugin><extensions>" + extensionElement + "</extensions></idea-plugin>"; PluginId id = PluginId.getId(pluginName); IdeaPluginDescriptorImpl pluginDescriptor = PluginDescriptorTestKt.readDescriptorForTest(Path.of(""), true, moduleXml.getBytes(StandardCharsets.UTF_8), id); pluginDescriptor.registerExtensions(area.getNameToPointMap(), pluginDescriptor.appContainerDescriptor, null); }