private @Nullable HTMLComposerExtension<?> getLanguageExtension(final RefElement refElement) {
    final PsiElement element = refElement.getPsiElement();
    return element != null ? myLanguageExtensions.get(element.getLanguage()) : null;
  }
private @Nullable HTMLComposerExtension<?> getLanguageExtension(final RefElement refElement)