String (@Nullable FilePath baseFile, @NotNull FilePath file) { if (baseFile == null || !baseFile.getName().equals(file.getName())) return file.getName(); FilePath aParentPath = baseFile.getParentPath(); if (aParentPath == null) return file.getName(); return VcsFileUtil.relativePath(aParentPath.getIOFile(), file.getIOFile()); }