@RequiresBackgroundThread
  public static @Nullable ApplyPatchFile getPatchFile(@NotNull File file) {
    VirtualFile vFile = VfsUtil.findFileByIoFile(file, true);
    if (vFile == null || !isPatchFile(vFile)) {
      return null;
    }

    return new ApplyPatchFile(vFile);
  }
@RequiresBackgroundThread
  public static @Nullable ApplyPatchFile getPatchFile(@NotNull File file)