String (@NotNull VirtualFile baseDir, @NotNull Change change) { VirtualFile file = change.getVirtualFile(); if (file == null) { ContentRevision before = change.getBeforeRevision(); if (before != null) { return VcsFileUtil.relativePath(baseDir, before.getFile()); } } return file == null ? null : VfsUtilCore.getRelativePath(file, baseDir); }