@Nullable
  public static VirtualFile getWorkingCopyRoot(@NotNull VirtualFile file) {
    do {
      if (isWorkingCopyRoot(file)) return file;
      file = file.getParent();
    }
    while (file != null);

    return null;
  }
@Nullable
  public static VirtualFile getWorkingCopyRoot(@NotNull VirtualFile file)