You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: default_formatter.rb
    path of file: ./repos/simplecov/lib/simplecov
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require "simplecov-html"
module SimpleCov
  module Fo
    
      def from_env(env)
        formatters = [SimpleCov::Formatter::HTMLFormatter]

        # When running under a CI that uses CodeClimate, JSON output is expected
        if env.fetch("CC_TEST_REPORTER_ID", nil)
          require "simplecov_json_formatter"
          formatters.push(SimpleCov::Formatter::JSONFormatter)
        end