The method Obj#setActiveGroupNames() fails with a NullPointerException if used on a collection generated by Set.of() or List.of(). This is because those collections throw an exception if you try to test if they contain null, which you do when in the block:
else if (groupNames.contains(null))
{
throw new NullPointerException("The groupNames contains null");
}
This is pretty annoying because if you're trying to add a face to only one group, that's what you'll be using 90% of the time.