maxIndexWithOrNull