class RuboCop::Cop::AnnotationComment

def bounds

Returns the range bounds for just the annotation
def bounds
  start = comment.source_range.begin_pos + margin.length
  length = [keyword, colon, space].reduce(0) { |len, elem| len + elem.to_s.length }
  [start, start + length]
end