presto-matching/src/main/java/io/prestosql/matching/Captures.java/Captures/ofNullable
class Captures:    public static <T> Captures ofNullable(Capture<T> capture, T value)
    {
        return capture == null ? empty() : new Captures(capture, value, NIL);
    }