@Override
    protected boolean isEndpointTypeExposed(final Class<?> beanType) {
        val annotations = MergedAnnotations.from(beanType, MergedAnnotations.SearchStrategy.SUPERCLASS);
        return annotations.isPresent(RestActuatorEndpoint.class) && annotations.isPresent(Endpoint.class);
    }
This is {@link RestActuatorEndpointDiscoverer}.

@author Misagh Moayyed
@since 7.1.0
api/cas-server-core-api-util/src/main/java/org/apereo/cas/util/spring/RestActuatorEndpointDiscoverer.java