class PatchInstallerUtil {

  @Nullable
  static LocalPackage getLatestPatcher(@NotNull RepoManager mgr) {
    LocalPackage patcher = null;
    for (LocalPackage p : mgr.getPackages().getLocalPackagesForPrefix(PATCHER_PATH_PREFIX)) {
      if (patcher == null || comparePatcherPaths(p.getPath(), patcher.getPath()) > 0) {
        patcher = p;
      }
    }
    return patcher;
  }

}