boolean () { if (mySubstitutions == null && myTag != null) { mySubstitutions = new MultiMap<>(); XmlTag[] tags = myTag.getSubTags(); for (XmlTag tag : tags) { if (equalsToSchemaName(tag, ELEMENT_TAG_NAME)) { final String substAttr = tag.getAttributeValue("substitutionGroup"); if (substAttr != null) { String substLocalName = XmlUtil.findLocalNameByQualifiedName(substAttr); mySubstitutions.putValue(substLocalName, tag); } } } } return mySubstitutions != null; }