     end
   end
 
-  defp process_group([{_, first}, {line_no, second}], _) when first > second do
+  defp process_group([{_, mod_list_first, a}, {line_no, mod_list_second, b}], _) when a > b do
     line = [
       line_no: line_no,
-      trigger: Name.full(second -- first),
-      module: second
+      trigger: Name.full(mod_list_second -- mod_list_first),
+      module: mod_list_second
     ]
 
     {:halt, line}

         {:alias, _, [{:__aliases__, meta, mod_list}]} = ast,
         aliases
       ) do
    modules =
      mod_list
      |> (&[{meta[:line], &1}]).()

    accumulate_alias_into_group(ast, modules, meta[:line], aliases)
  end


  defp find_alias_groups(ast, aliases), do: {ast, aliases}

  defp accumulate_alias_into_group(ast, modules, line, [{line_no, _, _} | _] = aliases)
       when line_no != 0 and line_no != line - 1 do
    {ast, modules ++ [nil] ++ aliases}
  end
