code: public PluginRelease getLastPluginRelease(String id) {
          PluginInfo pluginInfo = getPluginsMap().get(id);
          if (pluginInfo == null) {
              return null;
          }
  
          if (!lastPluginRelease.containsKey(id)) {
              for (PluginRelease release : pluginInfo.releases) {
                  if (systemVersion.equals("0.0.0") || versionManager.checkVersionConstraint(systemVersion, release.requires)) {
                      if (lastPluginRelease.get(id) == null) {
                          lastPluginRelease.put(id, release);
                      } else if (versionManager.compareVersions(release.version, lastPluginRelease.get(id).version) > 0) {
                          lastPluginRelease.put(id, release);
                      }
                  }
              }
          }
  
          return lastPluginRelease.get(id);
      }
docs: Returns the last release version of this plugin for given system version, regardless of release date.
  
  @return PluginRelease which has the highest version number