class Fun {

    public static <T> @NotNull Function<T, T>
    tee(final @NotNull Consumer<? super T> consumer) {
        return input -> {
            consumer.accept(input);
            return input;
        };
    }

    private  Fun();

}