docs: public void addClass(@DottedClassName String className, @CheckForNull String sourceFile, boolean isInterface, int size, boolean updatePackageStats) {
          if(!hasClassStats) {
              // totalClasses/totalSize might be set from FindBugsSummary before when parsing XML: reset them
              totalClasses = 0;
              totalSize = 0;
          }
          hasClassStats = true;
          String packageName;
          int lastDot = className.lastIndexOf('.');
          if (lastDot < 0) {
              packageName = "";
          } else {
              packageName = className.substring(0, lastDot);
          }
          PackageStats stat = getPackageStats(packageName);
          stat.addClass(className, sourceFile, isInterface, size, updatePackageStats);
          totalClasses++;
          totalSize += size;
          totalClassesFromPackageStats = 0;
          totalSizeFromPackageStats = 0;
      }