class ValidateAssignmentHelper extends BaseHelper {

    @VisibleForTesting
    protected void removeLocationsFromHierarchy(LocationTree locationTree, Set<String> removedAssignments) throws AuthenticatorException, OperationCanceledException, IOException {
        for (String removedAssignment : removedAssignments) {
            locationTree.deleteLocation(removedAssignment);
        }
        settingsRepository.saveANMLocation(gson.toJson(locationTree));
        anmLocationController.evict();
        String defaultLocationUuid = allSharedPreferences.fetchDefaultLocalityId(allSharedPreferences.fetchRegisteredANM());
        if (StringUtils.isNotBlank(defaultLocationUuid) && removedAssignments.contains(defaultLocationUuid)) {
            logoff(R.string.default_location_revoked_logged_off);
        }
    }

    public  ValidateAssignmentHelper(SyncUtils syncUtils);

}