code: private void addClassInfoAndIncrementCount(Class<?> type, ClassInfo classInfo) {
          classes.putIfAbsent(type, classInfo);
          classSerializationCount.compute(type, BeanReferences::incrementOrOne);
      }
docs: adds the class, incrementing the number of times it is used