Describe the bug
When performing field vis schema transform, the transformer can fail during the removal of types after the fields have been removed. I've reproduced in the repo under version 17.x as I first encountered the problem in 16.x and then upgraded to 17 and still experienced it although the error message was better. The issue seems to be related to 2 interfaces defining a similar field based on the same enum.
To Reproduce
Here's a test to reproduce the issue
https://github.com/mtmdla/graphql-java/blob/interface-issue-with-type-null/src/test/groovy/graphql/schema/transform/FieldVisibilitySchemaTransformationTest.groovy#L524