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

class RelatedTagQuery
  inclu
    
  def tags
    if query =~ /\*/
      pattern_matching_tags
    elsif category_id.present?
      related_tags_by_category
    elsif query.present?
      related_tags
    else
      []
    end