my($block_keyword) = first { $_eq $word_before->content } qw(map grep do);
returnunless$block_keyword;
my$s= $elem->find('PPI::Statement') or return;
my$statement_count= @$s;
returnunless$statement_count> $limit;
return$self->violation('Oversize block', "The statement count in this ${block_keyword} block is ${statement_count}, larger than the limit of ${limit}", $elem);