title: How to pass List<enum> to enum constructor via JavaPoet
body: <p>I'm trying to create an enum that takes a <code>List&lt;enum&gt;</code> as a parameter to the constructor via JavaPoet</p>
  <p><code>return TypeSpec.anonymousClassBuilder(&quot;$L&quot;, list.stream().map(a -&gt; xxx).collect(toList()) </code></p>
  <p>The generated code is rendered as
  <code>public enum Test { TEST_ENUM([ENUM]);</code>
  What am I missing</p>