protected static List<String> getAppCategories(List<App> apps) { List<String> categories = new ArrayList<>(apps.size()); for (App app : apps) { if (Validator.isNotNull(app.getCategory())) { categories.add(app.getCategory()); } } return categories; }