public static Optional<Predicate> fromValue(final String value) {
    return Stream.of(values()).filter(predicate -> predicate.name().equals(value)).findFirst();
  }
This class describes the behavior of predicates that can be used to filter pending transactions
ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/results/transaction/pool/Predicate.java