The above can be simplified to 

```ruby
prefix_header_contents = file_accessors.collect do |file_accessor|
  file_accessor.spec_consumer.prefix_header_contents
end.compact.uniq
```