public static <T>MenuResult<T> cancel(){
  return new MenuResult<>(Type.CANCEL,Collections.<T>emptyList());
}

public static < T > MenuResult < T > cancel ( ) { return new MenuResult < > ( Type . CANCEL , Collections . < T > emptyList ( ) ) ; }
creates a new menu result indicating that the user chose to cancel any task currently in progress and go back to the previous main menu if applicable .
