protected final void processTag(char tagName, @NlsSafe final String tagValue, @AntMessage.Priority int priority) {
    if (LOG.isDebugEnabled()) {
      LOG.debug(String.valueOf(tagName) + priority + "=" + tagValue);
    }

    if (AntLoggerConstants.TARGET == tagName) {
      setProgressStatistics(AntBundle.message("target.tag.name.status.text", tagValue));
    }
    else if (AntLoggerConstants.TASK == tagName) {
      setProgressText(AntBundle.message("executing.task.tag.value.status.text", tagValue));
      if (JAVAC.equals(tagValue)) {
        myJavacMessages = new ArrayList<>();
      }
    }

    if (myJavacMessages != null && (AntLoggerConstants.MESSAGE == tagName || AntLoggerConstants.ERROR == tagName)) {
      myJavacMessages.add(tagValue);
      return;
    }

    if (AntLoggerConstants.MESSAGE == tagName) {
      myMessageView.outputMessage(tagValue, priority);
    }
    else if (AntLoggerConstants.TARGET == tagName) {
      myMessageView.startTarget(tagValue);
    }
    else if (AntLoggerConstants.TASK == tagName) {
      myMessageView.startTask(tagValue);
    }
    else if (AntLoggerConstants.ERROR == tagName) {
      myMessageView.outputError(tagValue, priority);
    }
    else if (AntLoggerConstants.EXCEPTION == tagName) {
      String exceptionText = tagValue.replace(AntLoggerConstants.EXCEPTION_LINE_SEPARATOR, '\n');
      myMessageView.outputException(exceptionText);
    }
    else if (AntLoggerConstants.BUILD == tagName) {
      myMessageView.startBuild(myBuildName);
    }
    else if (AntLoggerConstants.TARGET_END == tagName || AntLoggerConstants.TASK_END == tagName) {
      final List<String> javacMessages = myJavacMessages;
      myJavacMessages = null;
      processJavacMessages(javacMessages, myMessageView, myProject);
      if (AntLoggerConstants.TARGET_END == tagName) {
        myMessageView.finishTarget();
      }
      else {
        myMessageView.finishTask();
      }
    }
  }
protected final void processTag(char tagName, @NlsSafe final String tagValue, @AntMessage.Priority int priority)