class Fun {

    public static <K, V> BiPredicate<K, V>
    testOrDefault2(final @NotNull ThrowingBiPredicate<? super K, ? super V> mayThrowOnTest, boolean defaultValue) {
        return compose2(result2(mayThrowOnTest::tryTest), result -> result.getOrDefault(defaultValue))::apply;
    }

    private  Fun();

}