presto-spi/src/main/java/io/prestosql/spi/connector/LocalProperty.java/LocalProperty/withConstants
class LocalProperty:    default Optional<LocalProperty<E>> withConstants(Set<E> constants)
    {
        Set<E> set = new LinkedHashSet<>(getColumns());
        set.removeAll(constants);

        if (set.isEmpty()) {
            return Optional.empty();
        }

        return Optional.of(constrain(set));
    }