@Override
    public Object @NotNull [] getVariants() {
      final XmlTag tag = PsiTreeUtil.getParentOfType(myElement, XmlTag.class);

      if (tag != null) {
        if (HtmlUtil.SCRIPT_TAG_NAME.equalsIgnoreCase(tag.getName())) {
          List<String> mimeTypes = new ArrayList<>();
          for (Language language : Language.getRegisteredLanguages()) {
            Collections.addAll(mimeTypes, language.getMimeTypes());
          }
          Collections.sort(mimeTypes);
          mimeTypes.remove("module"); // module is provided by enumerated value
          return mimeTypes.toArray();
        } else if(HtmlUtil.STYLE_TAG_NAME.equalsIgnoreCase(tag.getName())) {
          return new LookupElement[]{
            AutoCompletionPolicy.GIVE_CHANCE_TO_OVERWRITE.applyPolicy(LookupElementBuilder.create(ourStyleContentType))};
        }
      }

      return ArrayUtilRt.EMPTY_OBJECT_ARRAY;
    }
@Override
    public Object @NotNull [] getVariants()