title: Which design pattern is most appropriate, if any
body: <p>So, this element of code has the potential to get pretty ugly. There is the potential of adding multiple elements to the list in each if statement as well as many more if/else statements. What would be the best pattern or way of going about designing this piece of code. I was thinking about the chain of responsibility but that means be passing the list round everywhere which isn't the best or even the builder pattern? Any thoughts??</p>
  
  <pre><code>    List&lt;String&gt; aList = new ArrayList&lt;&gt;();
  
      if (something.contains(Effect.HARD)) {
          aList.add("");
      }
  
      if (something.contains(Effect.REFLECT)) {
          aList.add("");
          aList.add("");
      } else {
          aList.add("no reflect");
      }
  
      if (something.contains(Effect.OUTLINE)) {
          aList.add("something");
      }
  
      if (something.contains(Effect.GRADIENT)) {
          aList.add("gradient");
      } else {
          aList.add("no gradient");
      }
  </code></pre>