public static Boolean isAppFavorite(String apk,Set<String> appFavorites){
  Boolean res=false;
  if (appFavorites.contains(apk)) {
    res=true;
  }
  return res;
}

public static Boolean isAppFavorite ( String apk , Set < String > appFavorites ) { Boolean res = false ; if ( appFavorites . contains ( apk ) ) { res = true ; } return res ; }
retrieve if an app has been marked as favorite
