RawPluginDescriptor (@NotNull ReadModuleContext readContext, @NotNull DataLoader dataLoader, @NotNull String path, @Nullable RawPluginDescriptor readInto) { if (autoGenerateModuleDescriptor.get() && path.startsWith("intellij.")) { var element = moduleMap.get(path); if (element != null) { try { return XmlReader.readModuleDescriptorForTest(elementAsBytes(element)); } catch (XMLStreamException e) { throw new RuntimeException(e); } } assert readInto == null; // auto-generate empty descriptor return XmlReader.readModuleDescriptorForTest(("<idea-plugin package=\"" + path + "\"></idea-plugin>").getBytes(StandardCharsets.UTF_8)); } return resolvePath(readContext, dataLoader, path, readInto); }