docs: static void validateFactoryAndClass(FieldDefinition fd, int factoryId, int classId, String fullPath) {
          if (factoryId != fd.getFactoryId()) {
              throw new IllegalArgumentException("Invalid factoryId! Expected: "
                      + fd.getFactoryId() + ", Current: " + factoryId + " in path " + fullPath);
          }
          if (classId != fd.getClassId()) {
              throw new IllegalArgumentException("Invalid classId! Expected: "
                      + fd.getClassId() + ", Current: " + classId + " in path " + fullPath);
          }
      }