void (@NotNull PsiField field, @Nullable String tagName, @NotNull PsiAnnotation collectionAnnotation, RequiredFlag required) { if (tagName == null) { registerCollectionBinding(field, registrar, collectionAnnotation, required); return; } registrar.registerFixedNumberChildExtension(new XmlName(tagName), DomElement.class).addExtender(new DomExtender() { @Override public void registerExtensions(@NotNull DomElement domElement, @NotNull DomExtensionsRegistrar registrar) { registerCollectionBinding(field, registrar, collectionAnnotation, required); } }); }