String (@NotNull Project project, @NotNull VirtualFile dir, @NotNull CoverageSuitesBundle currentSuite, @NotNull CoverageDataManager manager) { DirCoverageInfo coverageInfo = getDirCoverageInfo(dir, currentSuite); if (coverageInfo == null) { return null; } if (manager.isSubCoverageActive()) { return coverageInfo.coveredLineCount > 0 ? CoverageBundle.message("coverage.view.text.covered") : null; } final String filesCoverageInfo = getFilesCoverageInformationString(coverageInfo); if (filesCoverageInfo != null) { final @Nls StringBuilder builder = new StringBuilder(); builder.append(filesCoverageInfo); final String linesCoverageInfo = getLinesCoverageInformationString(coverageInfo); if (linesCoverageInfo != null) { builder.append(", ").append(linesCoverageInfo); } return builder.toString(); } return null; }