String (@NotNull @NlsSafe String revision, @Nullable FilePath file, @Nullable FilePath baseFile) { boolean needFileName = file != null && !VcsFileUtil.CASE_SENSITIVE_FILE_PATH_HASHING_STRATEGY.equals(baseFile, file); if (!needFileName) return revision; String fileName = getRelativeFileName(baseFile, file); return revision.isEmpty() ? fileName : String.format("%s (%s)", revision, fileName); //NON-NLS }