private static void decorateBundle(ProjectViewNode node,
                                     PresentationData data,
                                     CoverageSuitesBundle currentSuite,
                                     Project project,
                                     CoverageDataManager manager) {
    final CoverageAnnotator coverageAnnotator = currentSuite == null ? null : currentSuite.getAnnotator(project);
    if (coverageAnnotator == null) {
      // N/A
      return;
    }

    final Object value = node.getValue();
    PsiElement element = null;
    if (value instanceof PsiElement) {
      element = (PsiElement)value;
    }
    else if (value instanceof SmartPsiElementPointer) {
      element = ((SmartPsiElementPointer<?>)value).getElement();
    }

    String informationString = null;
    if (element instanceof PsiDirectory) {
      informationString = coverageAnnotator.getDirCoverageInformationString((PsiDirectory)element, currentSuite, manager);
    } else if (element instanceof PsiFile) {
      informationString = coverageAnnotator.getFileCoverageInformationString((PsiFile)element, currentSuite, manager);
    }

    if (informationString != null) {
      data.setLocationString(informationString);
    }
  }
private static void decorateBundle(ProjectViewNode node,
                                     PresentationData data,
                                     CoverageSuitesBundle currentSuite,
                                     Project project,
                                     CoverageDataManager manager)