diff --git a/platform/projectModel-api/src/com/intellij/openapi/components/StateSplitterEx.java b/platform/projectModel-api/src/com/intellij/openapi/components/StateSplitterEx.java index 2a4d81e19d8c..aa010f629179 100644 --- a/platform/projectModel-api/src/com/intellij/openapi/components/StateSplitterEx.java +++ b/platform/projectModel-api/src/com/intellij/openapi/components/StateSplitterEx.java @@ -54,17 +54,12 @@ public abstract class StateSplitterEx implements StateSplitter { boolean isExternalStorageEnabled = filterOutExternalElements && StreamProviderKt.isExternalStorageEnabled(); for (Element subState : state.getChildren()) { if (!isExternalStorageEnabled || subState.getAttribute(EXTERNAL_SYSTEM_ID_ATTRIBUTE) == null) { - result.add(createItem(generator, subState, attributeName)); + result.add(createItem(subState.getAttributeValue(attributeName), generator, subState)); } } return result; } - @NotNull - protected static Pair createItem(@NotNull UniqueNameGenerator generator, @NotNull Element element, @NotNull String attributeName) { - return createItem(element.getAttributeValue(attributeName), generator, element); - } - @NotNull protected static Pair createItem(@NotNull String fileName, @NotNull UniqueNameGenerator generator, @NotNull Element element) { return Pair.create(element, generator.generateUniqueName(FileUtil.sanitizeFileName(fileName)) + ".xml");