class RuboCop::Cop::Lint::AmbiguousOperator

def on_new_investigation

def on_new_investigation
  processed_source.diagnostics.each do |diagnostic|
    next unless diagnostic.reason == :ambiguous_prefix
    offense_node = find_offense_node_by(diagnostic)
    next unless offense_node
    message = message(diagnostic)
    add_offense(
      diagnostic.location, message: message, severity: diagnostic.level
    ) do |corrector|
      add_parentheses(offense_node, corrector)
    end
  end
end