public static List<Setting> filterSettingsByDescription(List<Setting> settings,
                                                          String description) {
    return settings.stream()
        .filter(setting -> containsIgnoreCase(setting.getDescription(), description))
        .collect(Collectors.toList());
  }
public static List < Setting > filterSettingsByDescription ( List < Setting > settings , String description ) { return settings . stream ( ) . filter ( setting -> containsIgnoreCase ( setting . getDescription ( ) , description ) ) . collect ( Collectors . toList ( ) ) ; }
Filters a list of {@code settings} by a given {@code description}.

@param settings    the list of settings to be filtered
@param description to be searched for
@return a list of {@code settings}, containing (ignoring case) the given {@code description}