private static void addElementsForTag(XmlTag tag,
                                        @InspectionMessage String message,
                                        ProblemHighlightType error,
                                        ProblemsHolder holder,
                                        boolean isOnTheFly,
                                        @NotNull LocalQuickFix @NotNull ... fixes) {
    registerProblem(message, error, holder, XmlTagUtil.getStartTagNameElement(tag), fixes);
    if (isOnTheFly) {
      registerProblem(message, error, holder, XmlTagUtil.getEndTagNameElement(tag), fixes);
    }
  }
private static void addElementsForTag(XmlTag tag,
                                        @InspectionMessage String message,
                                        ProblemHighlightType error,
                                        ProblemsHolder holder,
                                        boolean isOnTheFly,
                                        @NotNull LocalQuickFix @NotNull ... fixes)