private static boolean hasConfigFieldsFlaggedWithRestart(Class<? extends ConfigInstance> configClass,
                                                             Class<? extends Service> serviceClass) {
        if (!ReflectionUtil.hasRestartMethods(configClass)) {
            throw new IllegalStateException(String.format(
                    "%s is listed as restart config for %s but does not contain any restart inspection methods.",
                    configClass.getSimpleName(), serviceClass.getSimpleName()));
        }
        return ReflectionUtil.containsFieldsFlaggedWithRestart(configClass);
    }
Returns the ConfigInstances classes from the annotation on the given Service class ,
including the ConfigInstances annotated on any of its super classes.
NOTE: Only the super classes that are subclass of Service are inspected.
config-model/src/main/java/com/yahoo/vespa/model/application/validation/change/ConfigValueChangeValidator.java