class AuthzHelper {

    public static void removeRoleMembers(List<RoleMember> originalRoleMembers, List<RoleMember> removeRoleMembers) {
        if (removeRoleMembers == null || originalRoleMembers == null) {
            return;
        }
        for (RoleMember removeMember : removeRoleMembers) {
            originalRoleMembers.removeIf(item -> item.getMemberName().equalsIgnoreCase(removeMember.getMemberName()));
        }
    }

}