code: 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);
      }
docs: Merges a stored element to the local variables.
  
  @param index   The index of the variable
  @param type    The type of the variable or the element (whatever is more specific)
  @param element The element to merge