                members (filter #(and (= method-sym (:name %))
                                      (not (contains? (:flags %) :varargs)))
                                (:members interface))]
-           (map (fn [{:keys [return-type parameter-types] :as _member_}]
+           (map (fn [{:keys [return-type parameter-types] :as _member}]
                   {:method-sym (-with-hint return-type method-sym)
                    :arglist    (-fix-arglist-with-hints protocol-sym (into ['this] parameter-types))})
                 members))))))


#?(:clj
   (defn ^:no-doc -emit-method-specs
     [{:keys [imp-sym signatures] :as _method-imp_}]
     (map (fn [{:keys [method-sym arglist]}]
            `(~method-sym ~arglist
               (~imp-sym ~@(map -remove-meta arglist))))

        (throw (ex-info (str "Function is expected to be never called. Actual calls:\n" (pr-str f-calls) ".") {})))))

(defn ^:no-doc -call-matches?
  [f args-matcher [call-f {:keys [args]} :as _call]]
  (and (= f call-f)
       (args-match? args-matcher args)))

