private static Map<String, Set<String>> createIndexDetectorsShortNameByBugPatternType() {
   final Map<String, Set<String>> ret = new HashMap<String, Set<String>>();
   for (final DetectorFactory detector :
       FindBugsPreferences.getDetectorFactorCollection().getFactories()) {
     for (final BugPattern bugPattern : detector.getReportedBugPatterns()) {
       Set<String> detectorsShortName = ret.get(bugPattern.getType());
       if (detectorsShortName == null) {
         detectorsShortName = new HashSet<String>();
         ret.put(bugPattern.getType(), detectorsShortName);
       }
       detectorsShortName.add(detector.getShortName());
     }
   }
   return ret;
 }