private static boolean isLogicalListType(Type listType)
  {
    return !listType.isPrimitive() &&
           listType.getOriginalType() != null &&
           listType.getOriginalType().equals(OriginalType.LIST) &&
           listType.asGroupType().getFieldCount() == 1 &&
           listType.asGroupType().getFields().get(0).isRepetition(Type.Repetition.REPEATED);
  }
private static boolean isLogicalListType ( Type listType ) { return ! listType . isPrimitive ( ) && listType . getOriginalType ( ) != null && listType . getOriginalType ( ) . equals ( OriginalType . LIST ) && listType . asGroupType ( ) . getFieldCount ( ) == 1 && listType . asGroupType ( ) . getFields ( ) . get ( 0 ) . isRepetition ( Type . Repetition . REPEATED ) ; }
check if a parquet type is a valid 'list' type