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: search_filter.rb
    path of file: ./repos/openproject/app/models/queries/work_packages/filter
    
    the code of the file until where you have to start completion: #-- copyright
# OpenProject is an open source project management software.
# Copyright (C) 2012-2024 the OpenProject GmbH
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License version 3.
#
# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyrig
    
  def custom_field_configurations
    # Does not remove custom fields that are not marked as filters
    # as the intend of this filter is to search and it is used in the
    # search context. Thus, only the searchable flag is of interest.
    custom_fields = if context&.project
                      context
                        .project
                        .all_work_package_custom_fields
                    else
                      ::WorkPackageCustomField
                    end