class RemoveUserTokenWhenUserDisabled {

    private final UserTokenManager userTokenManager;

    @EventListener
    public void handleStateChangeEvent(UserModifiedEvent event) {<FILL_FUNCTION_BODY>}

    @EventListener
    public void handleStateChangeEvent(UserStateChangedEvent event) {
        if (event.getState() != 1) {
            event.async(
                    Flux.fromIterable(event.getUserIdList())
                        .flatMap(userTokenManager::signOutByUserId)
            );
        }
    }

}

        if (event.getUserEntity().getStatus() != null && event.getUserEntity().getStatus() != 1) {
            event.async(
                    Mono.just(event.getUserEntity().getId())
                        .flatMap(userTokenManager::signOutByUserId)
            );
        }
    
<no_super_class>