docs: public static <T> Filter<T> by(Function<T, Boolean> filter) {
          return new Filter<T>() {
              @Override public boolean applies(@Nullable T element) {
                  return filter.apply(element);
              }
  
              @Override public boolean shouldDescendInto(@Nullable Object element) {
                  return false;
              }
          };
      }