void (@NotNull XmlTag tag, @NotNull ProblemsHolder holder, boolean isOnTheFly) { if (!HtmlUtil.isHtmlTagContainingFile(tag)) { return; } final String tagName = StringUtil.toLowerCase(tag.getName()); if (ourElementsWithoutTitle.contains(tagName)) { final XmlAttribute title = tag.getAttribute(TITLE); if (title != null) { return; } List<LocalQuickFix> fixes = new ArrayList<>(); if (!ourElementsWithoutTitle.contains(tag.getName())) { fixes.add(new CreateNewLabelAction(tag.getName())); } if (holder.isOnTheFly()) { fixes.add(new InsertRequiredAttributeFix(tag, TITLE) { @Override public @NotNull String getText() { return HtmlToolsBundle.message("html.intention.insert.attribute", TITLE); } }); } InspectionUtils.RegisterProblem(tag, holder, fixes, HtmlToolsBundle.message("html.inspections.check.required.title"), ProblemHighlightType.GENERIC_ERROR_OR_WARNING); } }