public void appendTailText(InspectionTreeNode node) throws E {
    if (myContext.isViewClosed()) {
      return;
    }
    final String customizedTailText = node.getTailText();
    if (customizedTailText != null) {
      if (!customizedTailText.isEmpty()) {
        appendText("    ");
        appendText(customizedTailText, SimpleTextAttributes.GRAYED_ATTRIBUTES);
      }
    }
    else {
      if (ExperimentalUI.isNewUI() && node instanceof InspectionRootNode) {
        String profile = myContext.getCurrentProfile().getDisplayName();
        if (!Strings.isEmpty(profile)) {
          appendText(" ");
          appendText(InspectionsBundle.message("inspection.results.profile", profile), SimpleTextAttributes.GRAYED_ATTRIBUTES);
        }
      }

      appendText("  ");
      LevelAndCount[] problemLevels = node.getProblemLevels();
      if (problemLevels.length > MAX_LEVEL_TYPES) {
        int sum = Arrays.stream(problemLevels).mapToInt(LevelAndCount::getCount).sum();
        appendText(InspectionsBundle.message("inspection.problem.descriptor.count", sum, SimpleTextAttributes.GRAYED_ATTRIBUTES));
      }
      else {
        for (LevelAndCount levelAndCount : problemLevels) {
          SimpleTextAttributes attrs = SimpleTextAttributes.GRAY_ATTRIBUTES;
          attrs = attrs.derive(-1, levelAndCount.getLevel() == HighlightDisplayLevel.ERROR && !myContext.getUIOptions().GROUP_BY_SEVERITY
                                   ? TREE_RED
                                   : TREE_GRAY, null, null);
          appendText(levelAndCount.getLevel().getSeverity().getCountMessage(levelAndCount.getCount()) + " ", attrs);
        }
      }
    }
  }
public void appendTailText(InspectionTreeNode node)