class RuboCop::Cop::Sorbet::BlockMethodDefinition

def adjust_for_closing_parenthesis(end_pos)

def adjust_for_closing_parenthesis(end_pos)
  source_after_last_arg = processed_source.buffer.source[end_pos..-1]
  match = closing_parenthesis_follows(source_after_last_arg)
  if match
    end_pos + match.end(0)
  else
    end_pos
  end
end