boolean (@NotNull XmlElement element) { if (isSurroundWithTag()) { return element.name.equals(getCollectionTagName(null)); } else if (getItemBindings().isEmpty()) { return element.name.equals(getElementName()); } else { for (Binding binding : getItemBindings()) { if (binding.isBoundTo(element)) { return true; } } return false; } }