public static boolean hasRestartMethods(Class<? extends ConfigInstance> configClass) {
        try {
            configClass.getDeclaredMethod("containsFieldsFlaggedWithRestart");
            configClass.getDeclaredMethod("getChangesRequiringRestart", configClass);
            return true;
        } catch (NoSuchMethodException e) {
            return false;
        }
    }
@Test
    void requireThatRestartMethodsAreDetectedProperly() {
        assertFalse(ReflectionUtil.hasRestartMethods(NonRestartConfig.class));
        assertTrue(ReflectionUtil.hasRestartMethods(RestartConfig.class));
    }