public void push(@NotNull T item){
  if (item.equals(peek())) {
    return;
  }
  myItemStack.push(item);
  updateText();
}

public void push ( @ NotNull T item ) { if ( item . equals ( peek ( ) ) ) { return ; } myItemStack . push ( item ) ; updateText ( ) ; }
adds an element to the navigation stack .
