code: public boolean search(Collection<String> names) {
          while (next()) {
              if (names.contains(getName())) {
                  return true;
              }
          }
          return false;
      }
docs: Search for a parameter with a name in a given collection.
  This method iterates over the parameters until a parameter with
  a matching name has been found. Note that the current parameter is not
  considered.