code: public boolean hasPluginUpdate(String id) {
          PluginInfo pluginInfo = getPluginsMap().get(id);
          if (pluginInfo == null) {
              return false;
          }
  
          String installedVersion = pluginManager.getPlugin(id).getDescriptor().getVersion();
          PluginRelease last = getLastPluginRelease(id);
  
          return last != null && versionManager.compareVersions(last.version, installedVersion) > 0;
      }
docs: Finds whether the newer version of the plugin.
  
  @return true if there is a newer version available which is compatible with system