void (@NotNull String rootPath, @NotNull Collection<? extends DataNode<GradleExtensions>> extensionsData) { Map<String, GradleExtensions> extensionMap = new HashMap<>(); for (DataNode<GradleExtensions> node : extensionsData) { DataNode<?> parent = node.getParent(); if (parent == null) continue; if (!(parent.getData() instanceof ModuleData)) continue; String gradlePath = getGradleIdentityPath((ModuleData)parent.getData()); extensionMap.put(gradlePath, node.getData()); } add(rootPath, extensionMap); }