code: public List<PluginInfo> getUpdates() {
          List<PluginInfo> updates = new ArrayList<>();
          for (PluginWrapper installed : pluginManager.getPlugins()) {
              String pluginId = installed.getPluginId();
              if (hasPluginUpdate(pluginId)) {
                  updates.add(getPluginsMap().get(pluginId));
              }
          }
  
          return updates;
      }
docs: Return a list of plugins that are newer versions of already installed plugins.
  
  @return list of plugins that have updates