createVariableTypeContainer_(types) {
    const typeList = document.createElement('ul');
    typeList.className = 'typedModalList';
    for (let i = 0; i < types.length; i++) {
      const type = types[i];
      const typeDisplayName = type[0];
      const typeName = type[1];
      const typeLi = document.createElement('li');
      const typeInput = document.createElement('input');
      typeInput.className = 'typedModalTypes';
      typeInput.type = 'radio';
      typeInput.id = typeName;
      typeInput.name = 'blocklyVariableType';
      this.addEvent_(typeInput, 'click', this, (e) => {
        this.selectedType_ = e.target.id;
      });
      this.firstTypeInput_ = typeList.querySelector('.typedModalTypes');
      const typeLabel = document.createElement('label');
      typeLabel.textContent = typeDisplayName;
      typeLabel.setAttribute('for', typeName);

      typeLi.appendChild(typeInput);
      typeLi.appendChild(typeLabel);
      typeList.appendChild(typeLi);
    }
    return typeList;
  }
Creates an unordered list containing all the types.
@param {Array<Array<string>>} types An array holding arrays with the
    display name as the first value and the type as the second.
    Ex: [['Penguin', 'PENGUIN'], ['Giraffe', 'GIRAFFE']].
@returns {HTMLElement} The list of types.
@protected