RawPluginDescriptor (@NotNull ReadModuleContext readContext, @NotNull DataLoader dataLoader, @NotNull String relativePath, @Nullable RawPluginDescriptor readInto) { for (var child : root.children) { if (child.name.equals("config-file-idea-plugin")) { var url = Objects.requireNonNull(child.getAttributeValue("url")); if (url.endsWith("/" + relativePath)) { try { return XmlReader.readModuleDescriptor(elementAsBytes(child), readContext, this, dataLoader, null, readInto, null); } catch (XMLStreamException e) { throw new RuntimeException(e); } } } } throw new AssertionError("Unexpected: " + relativePath); }