docs: @Override
      public void writeXML(XMLOutput xmlOutput) throws IOException {
          xmlOutput.startTag("FindBugsProfile");
          xmlOutput.stopTag(false);
          TreeSet<Class<?>> treeSet = new TreeSet<>(new TotalTimeComparator(this));
          treeSet.addAll(profile.keySet());
          long totalTime = 0;
          for (Profile p : profile.values()) {
              totalTime += p.totalTime.get();
          }
  
          long accumulatedTime = 0;
  
          for (Class<?> c : treeSet) {
              Profile p = getProfile(c);
              if (p == null) {
                  continue;
              }
              p.writeXML(xmlOutput);
              accumulatedTime += p.totalTime.get();
              if (accumulatedTime > 3 * totalTime / 4) {
                  break;
              }
          }
          xmlOutput.closeTag("FindBugsProfile");
      }