FilePath (@NotNull FilePath oldBase, @NotNull FilePath newBase, @NotNull FilePath path) { String relativePath = Objects.requireNonNull(getRelativePath(oldBase.getPath(), path.getPath(), '/')); return VcsUtil.getFilePath(newBase.getPath() + "/" + relativePath, path.isDirectory()); }