class Fun {

    @SuppressWarnings("OptionalUsedAsFieldOrParameterType")
    public static <T> Stream<T>
    streamOpt(final @NotNull Optional<T> element) {
        return element.map(Stream::of).orElse(Stream.empty());
    }

    private  Fun();

}