ParentAwareTokenSet (ParentAwareTokenSet... sets) { TokenSet tokenSet = TokenSet.orSet(Arrays.stream(sets).map(t -> t.myTokenSet).toArray(TokenSet[]::new)); return new ParentAwareTokenSet(tokenSet); }