code: private TypeMirror getTypeFromDOMElement(Element element) {
      return DOMElementsUtil
          .getTypeForElementTag(element.getStartTag().getName())
          .map(Class::getCanonicalName)
          .map(elements::getTypeElement)
          .map(TypeElement::asType)
          .orElse(null);
    }
docs: Find the corresponding TypeMirror from Elemental2 for a given DOM Element
  
  @param element The element we want the TypeMirror of
  @return The type mirror