src/main/java/org/xmlet/xsdparser/xsdelements/XsdMultipleElements.java
@Override
    public void replaceUnsolvedElements(NamedConcreteElement elementWrapper) {
        if (elementWrapper.getElement() instanceof XsdElement){
            super.replaceUnsolvedElements(elementWrapper);
        }

        if (elementWrapper.getElement() instanceof XsdGroup){
            elements.add(elementWrapper);

            this.elements.removeIf(element ->
               element instanceof UnsolvedReference && ((UnsolvedReference) element).getRef().equals(elementWrapper.getName())
            );
        }
    }
@Override
    public void replaceUnsolvedElements(NamedConcreteElement elementWrapper) {
        if (elementWrapper.getElement() instanceof XsdElement){
            super.replaceUnsolvedElements(elementWrapper);
        }

        if (elementWrapper.getElement() instanceof XsdGroup){
            elements.add(elementWrapper);

            this.elements.removeIf(element ->
               element instanceof UnsolvedReference && ((UnsolvedReference) element).getRef().equals(elementWrapper.getName())
            );
        }
    }
@ Override public void replaceUnsolvedElements ( NamedConcreteElement elementWrapper ) { if ( elementWrapper . getElement ( ) instanceof XsdElement ) { super . replaceUnsolvedElements ( elementWrapper ) ; } if ( elementWrapper . getElement ( ) instanceof XsdGroup ) { elements . add ( elementWrapper ) ; this . elements . removeIf ( element -> element instanceof UnsolvedReference && ( ( UnsolvedReference ) element ) . getRef ( ) . equals ( elementWrapper . getName ( ) ) ) ; } }
Replaces possible {@link UnsolvedReference} objects in the {@link XsdMultipleElements#elements} if any of their
{@link UnsolvedReference#ref} field matches the {@link NamedConcreteElement#name} field.
@param elementWrapper A {@link NamedConcreteElement} with a name that will replace an {@link UnsolvedReference}
object, if a match between the {@link NamedConcreteElement#name} attribute and the
{@link UnsolvedReference#ref} attribute.
Replaces possible {