diff --git a/plugins/properties/properties-psi-impl/src/com/intellij/lang/properties/editor/ResourceBundleFileStructureViewElement.java b/plugins/properties/properties-psi-impl/src/com/intellij/lang/properties/editor/ResourceBundleFileStructureViewElement.java index d2af3f6dcc2e..28c1b63f7b60 100644 --- a/plugins/properties/properties-psi-impl/src/com/intellij/lang/properties/editor/ResourceBundleFileStructureViewElement.java +++ b/plugins/properties/properties-psi-impl/src/com/intellij/lang/properties/editor/ResourceBundleFileStructureViewElement.java @@ -69,12 +69,13 @@ public class ResourceBundleFileStructureViewElement implements StructureViewTree final HashSet remains = new HashSet<>(myElements.keySet()); for (Map.Entry> entry : propertyNames.entrySet()) { final String propKey = entry.getKey(); - final IProperty representative = entry.getValue().iterator().next(); + Collection properties = entry.getValue(); final ResourceBundlePropertyStructureViewElement oldPropertyNode = myElements.get(propKey); - if (oldPropertyNode != null && oldPropertyNode.getProperty() == representative) { + if (oldPropertyNode != null && properties.contains(oldPropertyNode.getProperty())) { remains.remove(propKey); continue; } + final IProperty representative = properties.iterator().next(); final ResourceBundlePropertyStructureViewElement node = new ResourceBundlePropertyStructureViewElement(representative); myElements.put(propKey, node); }