class Rufo::Formatter

def remove_lines_before_inline_declarations

def remove_lines_before_inline_declarations
  return if @inline_declarations.empty?
  lines = @output.lines
  @inline_declarations.reverse.each_cons(2) do |(after, after_original), (before, before_original)|
    if before + 2 == after && before_original + 1 == after_original && lines[before + 1].strip.empty?
      lines.delete_at(before + 1)
    end
  end
  @output = lines.join
end