for (int i = 0; i < selection.size (); i++) ((MenuElement) selection.get (i)).menuSelectionChanged (false);
for (int i = selectedPath.size() - 1; i >= 0; i--) ((MenuElement) selectedPath.get(i)).menuSelectionChanged(false);
  public void clearSelectedPath ()  {    for (int i = 0; i < selection.size (); i++)      ((MenuElement) selection.get (i)).menuSelectionChanged (false);    selection.clear ();  }