class Nothing {

    @SuppressWarnings("WeakerAccess")
    public static <T> Function<T, Nothing>
    voidToNothing1(final @NotNull Consumer<? super T> consumer) {
        return input -> {
            consumer.accept(input);
            return Nothing.instance;
        };
    }

    private  Nothing();

}