void (final XmlTag tag, final String name, @NotNull @InspectionMessage String localizedMessage, final LocalQuickFix basicIntention, ProblemsHolder holder, @NotNull LocalQuickFix addAttributeFix, boolean isOnTheFly) { boolean htmlTag = false; if (tag instanceof HtmlTag) { htmlTag = true; if (isAdditionallyDeclared(getAdditionalEntries(), name)) return; } LocalQuickFix[] fixes; ProblemHighlightType highlightType; if (htmlTag) { fixes = basicIntention == null ? new LocalQuickFix[]{addAttributeFix} : new LocalQuickFix[]{addAttributeFix, basicIntention}; highlightType = isInjectedWithoutValidation(tag) ? ProblemHighlightType.INFORMATION : ProblemHighlightType.GENERIC_ERROR_OR_WARNING; } else { fixes = basicIntention == null ? LocalQuickFix.EMPTY_ARRAY : new LocalQuickFix[]{basicIntention}; highlightType = ProblemHighlightType.ERROR; } if (isOnTheFly || highlightType != ProblemHighlightType.INFORMATION) { addElementsForTag(tag, localizedMessage, highlightType, holder, isOnTheFly, fixes); } }