public static @Nullable Language getScriptLanguageToInject(@NotNull XmlTag xmlTag) {
    if (!HtmlUtil.isScriptTag(xmlTag)) {
      return null;
    }
    String mimeType = xmlTag.getAttributeValue("type");
    if (mimeType != null && mimeType.endsWith("+json")) {
      mimeType = "application/json";
    }
    Collection<Language> languages = Language.findInstancesByMimeType(mimeType);
    return !languages.isEmpty() ? languages.iterator().next() : Language.ANY;
  }
public static @Nullable Language getScriptLanguageToInject(@NotNull XmlTag xmlTag)