void (@NotNull XmlTag tag, @NotNull ProblemsHolder holder, boolean isOnTheFly) { if (!HtmlUtil.isHtmlTagContainingFile(tag)) return; final String tagName = StringUtil.toLowerCase(tag.getName()); if (!tagName.equalsIgnoreCase(TABLE)) return; List<LocalQuickFix> fixes = new ArrayList<>(); if (tag.getAttribute(SUMMARY) != null) return; if (isOnTheFly) { fixes.add(new InsertRequiredAttributeFix(tag, SUMMARY)); } InspectionUtils .RegisterProblem(tag, holder, fixes, HtmlToolsBundle.message("html.inspections.check.required.summary"), ProblemHighlightType.GENERIC_ERROR_OR_WARNING); }