title: add object to list when made
body: <p>How do I add a setting to a list while making it?</p>
  <p>So for a program I am making I want to add a Object to a list without calling a function.
  So i have</p>
  <pre><code>    public static ArrayList&lt;Setting&gt; settings = new ArrayList&lt;Setting&gt;();
  </code></pre>
  <p>and now when I want to add something I would call</p>
  <pre><code>    private final Setting&lt;Boolean&gt; shouldDisplay = settings.add(new Setting(&quot;Description&quot;, false));
  </code></pre>
  <p>The only problem is that this gives me an error</p>
  <p><strong>Type mismatch: cannot convert from boolean to Setting</strong></p>
  <p>I know this is possible because I've seen code like</p>
  <pre><code>    private final Setting&lt;Boolean&gt; maintainLevel = sgGeneral.add(new BoolSetting.Builder()
              .name(&quot;maintain-level&quot;)
              .description(&quot;Maintains your current Y level when holding the jump key.&quot;)
              .defaultValue(false)
              .build()
      );
  </code></pre>
  <p>at <a href="https://github.com/MeteorDevelopment/meteor-client/blob/533fdb86ed812c76851dfcb57a1a24157fa04a59/src/main/java/meteordevelopment/meteorclient/systems/modules/movement/AirJump.java" rel="nofollow noreferrer">https://github.com/MeteorDevelopment/meteor-client/blob/533fdb86ed812c76851dfcb57a1a24157fa04a59/src/main/java/meteordevelopment/meteorclient/systems/modules/movement/AirJump.java</a></p>
  <p>How would I go about making it return a type Setting instead of boolean. Thanks</p>