public static boolean hasPublicNullaryConstructor(Class<?> clazz) {
        return Arrays.stream(clazz.getConstructors())
                .anyMatch(constructor -> constructor.getParameterCount() == 0);
    }
@Test
    void testHasNullaryConstructorFalse() {
        assertThat(InstantiationUtil.hasPublicNullaryConstructor(InstantiationUtil.class))
                .isFalse();
    }