public static boolean isTagWithOptionalEnd(@NotNull String tagName, boolean caseSensitive) {
    return OPTIONAL_END_TAGS_MAP.contains(caseSensitive ? tagName : StringUtil.toLowerCase(tagName));
  }
public static boolean isTagWithOptionalEnd(@NotNull String tagName, boolean caseSensitive)