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: anifty.rb
    path of file: ./repos/danbooru/app/logical/source/extractor
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

# @see Source::URL::Anifty
class Source::Extractor

    
    def other_names
      other_names = [username]
      if api_response.present?
        other_names << api_response.dig("creator", "displayNameJA")
      elsif artist_api_response
        other_names << artist_api_response.dig("creatorProfile", "nameJA")
      end