void (@NotNull XmlTag tag, @NotNull ProblemsHolder holder, boolean isOnTheFly) { if (!HtmlUtil.isHtmlTagContainingFile(tag)) return; if (!tag.getName().equalsIgnoreCase(HEAD)) return; if (XmlCustomElementDescriptor.isCustomElement(tag)) return; final XmlTag[] subTags = tag.getSubTags(); long count = Arrays.stream(subTags).filter((element) -> element.getName().equalsIgnoreCase(TITLE)).count(); if (count > 0) return; List<LocalQuickFix> fixes = new ArrayList<>(); fixes.add(new CreateRequiredSubElement(tag.getOriginalElement(), TITLE)); InspectionUtils.RegisterProblem(tag, holder, fixes, HtmlToolsBundle.message("html.inspections.check.required.title.element"), ProblemHighlightType.GENERIC_ERROR_OR_WARNING); }