title: Add an element to the list if it doesn't find it with lambda
body: <p>I'm filtering an object in a list if the condition is true, if not found it will create and add a new object to the list. But it's not working... could someone help?</p>
  <pre><code>for (int i = 0; i &lt; questao.getQuestaoOpcao().size(); i++) {                
      questao.getQuestaoOpcao().stream().flatMap(qoi -&gt; qoi.getQuestaoOpcoesIdioma().stream())
              .filter(qoi -&gt; qoi.getIdioma().equals(idiomaSelecionado)).findFirst()
          .orElse(new QuestaoOpcaoIdioma(questao.getQuestaoOpcao().get(i), nomesOpcoesList.get(i), idiomaSelecionado));
  }
  </code></pre>