code: public static int getPackedPositionType(final long packedPosition) {
          if (packedPosition == PACKED_POSITION_VALUE_NULL) {
              return PACKED_POSITION_TYPE_NULL;
          }
  
          return (packedPosition & PACKED_POSITION_MASK_TYPE) == PACKED_POSITION_MASK_TYPE ?
                  PACKED_POSITION_TYPE_CHILD : PACKED_POSITION_TYPE_GROUP;
      }
docs: Returns the type of the item, which corresponds to a specific packed position.
  
  @param packedPosition
  The packed position of the item, whose type should be returned, as an {@link Integer}
  value
  @return The type of the item, which corresponds to the given packed position, as an {@link
  Integer} value. The type may either be <code>PACKED_POSITION_TYPE_GROUP</code>,
  <code>PACKED_POSITION_TYPE_CHILD</code> or <code>PACKED_POSITION_TYPE_NULL</code>