docs: public boolean isTypeOrSubtype( Set<Name> nodeTypeNames,
                                      Name candidateSupertypeName ) {
          for (Name nodeTypeName : nodeTypeNames) {
              if (isTypeOrSubtype(nodeTypeName, candidateSupertypeName)) return true;
          }
          return false;
      }