code: public static <T> Optional<T> toJava(Option<T> scalaOption) {
  		if (scalaOption.isEmpty()) {
  			return Optional.empty();
  		} else {
  			return Optional.ofNullable(scalaOption.get());
  		}
  	}
docs: Converts a Scala {@link Option} to a {@link Optional}.
  
  @param scalaOption to convert into ta Java {@link Optional}
  @param <T> type of the optional value
  @return Optional of the given option