 defmodule Credo.Check.Refactor.EnumHelpers do
   def traverse(
-        ast =
-          {{:., _, [{:__aliases__, meta, [:Enum]}, second]}, _,
-           [{{:., _, [{:__aliases__, _, [:Enum]}, first]}, _, _}, _]},
+        {{:., _, [{:__aliases__, meta, [:Enum]}, second]}, _,
+         [{{:., _, [{:__aliases__, _, [:Enum]}, first]}, _, _}, _]} = ast,
         issues,
         issue_meta,
         message,

  end

  def traverse(
        ast =
          {:|>, meta,
           [
             {:|>, _,
              [
                _,
                {{:., _, [{:__aliases__, _, [:Enum]}, first]}, _, _}
              ]},
             {{:., _, [{:__aliases__, _, [:Enum]}, second]}, _, _}
           ]},
        issues,
        issue_meta,
        message,

  end

  def traverse(
        {{:., meta, [{:__aliases__, _, [:Enum]}, second]}, _,
         [
           {:|>, _, [_, {{:., _, [{:__aliases__, _, [:Enum]}, first]}, _, _}]},
           _
         ]} = ast,
        issues,
        issue_meta,
        message,
