docs: private static int sizeofPrimitiveType(final Class type) {
          if (type == int.class) {
              return INT_FIELD_SIZE;
          } else if (type == long.class) {
              return LONG_FIELD_SIZE;
          } else if (type == short.class) {
              return SHORT_FIELD_SIZE;
          } else if (type == byte.class) {
              return BYTE_FIELD_SIZE;
          } else if (type == boolean.class) {
              return BOOLEAN_FIELD_SIZE;
          } else if (type == char.class) {
              return CHAR_FIELD_SIZE;
          } else if (type == double.class) {
              return DOUBLE_FIELD_SIZE;
          } else if (type == float.class) {
              return FLOAT_FIELD_SIZE;
          } else {
              throw new IllegalArgumentException("not primitive: " + type);
          }
      }