public static @NotNull ContentRevision createRevisionForTypeChange(@NotNull FilePath filePath,
                                                                     @Nullable VcsRevisionNumber revisionNumber,
                                                                     @NotNull Project project) {
    if (revisionNumber == null) {
      File file = filePath.getIOFile();
      VirtualFile virtualFile = LocalFileSystem.getInstance().refreshAndFindFileByIoFile(file);
      if (virtualFile != null) filePath = VcsUtil.getFilePath(virtualFile);
    }
    return createRevision(filePath, revisionNumber, project);
  }
public static @NotNull ContentRevision createRevisionForTypeChange(@NotNull FilePath filePath,
                                                                     @Nullable VcsRevisionNumber revisionNumber,
                                                                     @NotNull Project project)