code: public static <T> Optional<T> getNullableAndFilteredOptional(T target,
              Predicate<T> predicate) {
          return Optional.ofNullable(target).filter(predicate);
      }
docs: Gets nullable and filtered optional.
  
  @param <T>       the type parameter
  @param target    the target
  @param predicate the predicate
  @return the nullable and filtered optional