private static Iterable<PluginWrapper> getPluginsSorted() {
        PluginManager pluginManager = Jenkins.getInstance().getPluginManager();
        return getPluginsSorted(pluginManager);
    }
private static Iterable < PluginWrapper > getPluginsSorted ( ) { PluginManager pluginManager = Jenkins . getInstance ( ) . getPluginManager ( ) ; return getPluginsSorted ( pluginManager ) ; }
Fixes JENKINS-47779 caused by JENKINS-47713
Not using SortedSet because of PluginWrapper doesn't implements equals and hashCode.
@return new copy of the PluginManager.getPlugins sorted