class AuthzHelper {

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

}