code: public static Optional<String> getOptional(String string) {
          return Optional.ofNullable(string).filter(getIsEmpty().negate());
      }
docs: Gets optional.
  
  @param string the string
  @return the optional