docs: public boolean isInterfaceOrUnion(Type type) {
          Optional<TypeDefinition> typeDefinition = getType(type);
          if (typeDefinition.isPresent()) {
              TypeDefinition definition = typeDefinition.get();
              return definition instanceof UnionTypeDefinition || definition instanceof InterfaceTypeDefinition;
          }
          return false;
      }