List<AnAction> () { List<AnAction> group = new ArrayList<>(); List<List<String>> recentlyFiltered = getRecentValuesFromSettings(); if (!recentlyFiltered.isEmpty()) { group.add(Separator.create(VcsLogBundle.message("vcs.log.filter.recent"))); for (List<String> recentGroup : recentlyFiltered) { if (!recentGroup.isEmpty()) { group.add(new PredefinedValueAction(recentGroup)); } } group.add(Separator.getInstance()); } return group; }