public static boolean canClosingTagAutoClose(@NotNull String tagToClose,
                                               @NotNull String closingTag,
                                               boolean caseSensitive) {
    var normalizedTagToClose = caseSensitive ? tagToClose : StringUtil.toLowerCase(tagToClose);
    var normalizedClosingTag = caseSensitive ? closingTag : StringUtil.toLowerCase(closingTag);
    if (!isTagWithOptionalEnd(normalizedTagToClose, true)) return false;
    if (normalizedTagToClose.equals("p")) {
      return P_AUTO_CLOSE_CLOSING_TAGS.contains(normalizedClosingTag);
    }
    return true;
  }
public static boolean canClosingTagAutoClose(@NotNull String tagToClose,
                                               @NotNull String closingTag,
                                               boolean caseSensitive)