Collectors.filtering: The `filtering` method in the Collectors utility class allows for a filtering step before collecting elements into a result container. This method is useful when you want to apply conditional logic to a collection process, retaining only elements that match a predicate.