if (!added.contains(e[i]))
if (!contains(added, e[i]))
      public void addAddedElements (Element[] e)      {        if (e == null || e.length == 0)          return;        for (int i = 0; i < e.length; i++)          {            if (!added.contains(e[i]))              added.add(e[i]);          }      }