code: public boolean hasAncestorOfType( Type firstType,
                                        Type... additionalTypes ) {
          return hasAncestorOfType(EnumSet.of(firstType, additionalTypes));
      }
docs: Determine whether this node has an ancestor with any of the supplied types.
  
  @param firstType the first type; may not be null
  @param additionalTypes the additional types; may not be null
  @return true if there is at least one ancestor that has any of the supplied types, or false otherwise