public static void addItemStackToList(ItemStack stack){
  if (!hasItems(stack)) {
    stacks.add(stack);
  }
}

public static void addItemStackToList ( ItemStack stack ) { if ( ! hasItems ( stack ) ) { stacks . add ( stack ) ; } }
use this to add an item stack to the list
