private static @Nullable VirtualFile getRootForChange(@NotNull Change change, @NotNull ProjectLevelVcsManager vcsManager) {
    FilePath bPath = ChangesUtil.getBeforePath(change);
    FilePath aPath = ChangesUtil.getAfterPath(change);

    VirtualFile root = getRootForPath(aPath, vcsManager);
    if (root == null && !Comparing.equal(bPath, aPath)) {
      root = getRootForPath(bPath, vcsManager);
    }
    return root;
  }
private static @Nullable VirtualFile getRootForChange(@NotNull Change change, @NotNull ProjectLevelVcsManager vcsManager)