presto-main/src/main/java/io/prestosql/sql/planner/optimizations/LocalProperties.java/LocalProperties/normalizeAndPrune
class LocalProperties:    public static <T> List<LocalProperty<T>> normalizeAndPrune(List<? extends LocalProperty<T>> localProperties)
    {
        return normalize(localProperties).stream()
                .filter(Optional::isPresent)
                .map(Optional::get)
                .collect(Collectors.toList());
    }