public static void addMessageWithFixes(final PsiElement context,
                                         final @InspectionMessage String message,
                                         @NotNull final Validator.ValidationHost.ErrorType type,
                                         AnnotationHolder myHolder,
                                         final IntentionAction @NotNull ... fixes) {
    if (message != null && !message.isEmpty()) {
      HighlightSeverity severity = type == Validator.ValidationHost.ErrorType.ERROR ? HighlightSeverity.ERROR : HighlightSeverity.WARNING;
      if (context instanceof XmlTag) {
        addMessagesForTreeChild(XmlTagUtil.getStartTagNameElement((XmlTag)context), severity, message, myHolder, fixes);

        addMessagesForTreeChild(XmlTagUtil.getEndTagNameElement((XmlTag)context), severity, message, myHolder, fixes);
      }
public static void addMessageWithFixes(final PsiElement context,
                                         final @InspectionMessage String message,
                                         @NotNull final Validator.ValidationHost.ErrorType type,
                                         AnnotationHolder myHolder,
                                         final IntentionAction @NotNull ... fixes) {
    if (message != null && !message.isEmpty()) {
      HighlightSeverity severity = type == Validator.ValidationHost.ErrorType.ERROR ? HighlightSeverity.ERROR : HighlightSeverity.WARNING;
      if (context instanceof XmlTag)