private[plugin] def getMoreUpToDateVersion()

in ideaSupport/src/main/scala/org/jetbrains/sbtidea/download/plugin/RepoPluginInstaller.scala [106:116]


  private[plugin] def getMoreUpToDateVersion(descriptor: PluginDescriptor, channel: Option[String]): Option[String] = {
    val latestPluginVersion = repo.getLatestPluginVersion(buildInfo, descriptor.id, channel)
    latestPluginVersion match {
      case Right(version) if VersionComparatorUtil.compare(descriptor.version, version) < 0 =>
        Some(version)
      case Left(error) =>
        log.warn(s"Failed to fetch latest plugin ${descriptor.id} version: $error")
        None
      case _ => None
    }
  }