Bug 71640 [IDE] use of deprecated IExtension.getDeclaringPluginDescriptor()
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/MarkerHelpRegistry.java
public boolean equals(Object o) {
            if (!(o instanceof QueryComparator))
                return false;
            return true;
        }
        /* (non-Javadoc)
         * Method declared on Comparator.
         */
        public int compare(Object o1, Object o2) {
            
            MarkerQuery q1 = (MarkerQuery) o1;
            MarkerQuery q2 = (MarkerQuery) o2;
            int size1 = q1.getAttributes().length;
            int size2 = q2.getAttributes().length;
            if (size1 > size2)
                return -1;
            if (size1 == size2)
                return 0;
            return 1;
        }
    }
    /* (non-Javadoc)
     * Method declared on IMarkerHelpRegistry.
     */
    public String getHelp(IMarker marker) {
        if (sortedHelpQueries == null) {
            Set set = helpQueries.keySet();
            sortedHelpQueries = new ArrayList(set.size());
            sortedHelpQueries.addAll(set);
            Collections.sort(sortedHelpQueries, new QueryComparator());