# File lib/util/deprecation.rb, line 25
    def self.deprecated(old, new=nil)
      replace = new ? "use `#{new}`" : "internal use only"

      from = DEPRECATE_FULL_TRACE ? caller(2).join("\n") : caller.find { |l| not MATCH_DIR.match(l) }
      warn "[DEPRECATION] `#{old}` is deprecated, #{replace}. Called from #{from}"
    end