void (@NotNull XmlTag tag, @NotNull ProblemsHolder holder, @NotNull List<@NotNull LocalQuickFix> fixes, @InspectionMessage String text, @NotNull ProblemHighlightType severity) { PsiElement toRegister = XmlTagUtil.getStartTagNameElement(tag); if (toRegister == null) return; InspectionManager manager = holder.getManager(); ProblemDescriptor descriptor = manager .createProblemDescriptor(toRegister, toRegister, text, severity, holder.isOnTheFly(), fixes.toArray(LocalQuickFix.EMPTY_ARRAY)); holder.registerProblem(descriptor); }