private void mergeElementStore ( final int index , final String type , final Element element ) { // new element must be created for immutability final String elementType = type . equals ( Types . OBJECT ) ? determineLeastSpecificType ( element . getTypes ( ) . toArray ( new String [ element . getTypes ( ) . size ( ) ] ) ) : type ; final Element created = new Element ( elementType ) ; created . merge ( element ) ; localVariables . merge ( index , created , Element :: merge ) ; }
Merges a stored element to the local variables .