code: private boolean checkTagAndParam(XDoc doc, String tagName, String paramName, String paramValue)
      {
          if (tagName == null) {
              return true;
          }
          if (!doc.hasTag(tagName)) {
              return false;
          }
          if (paramName == null) {
              return true;
          }
          if (!doc.getTag(tagName).getAttributeNames().contains(paramName)) {
              return false;
          }
          return (paramValue == null) || paramValue.equals(doc.getTagAttributeValue(tagName, paramName));
      }
docs: Determines whether the given documentation part contains the specified tag with the given parameter having the
  given value.
  
  @param doc         The documentation part
  @param tagName     The tag to be searched for
  @param paramName   The parameter that the tag is required to have
  @param paramValue  The value of the parameter
  @return            boolean Whether the documentation part has the tag and parameter