code: private void printTagMisuseWarn(CommentHelper ch, Taglet taglet, DocTree tag, String holderType) {
          Set<String> locationsSet = new LinkedHashSet<>();
          if (taglet.inOverview()) {
              locationsSet.add("overview");
          }
          if (taglet.inModule()) {
              locationsSet.add("module");
          }
          if (taglet.inPackage()) {
              locationsSet.add("package");
          }
          if (taglet.inType()) {
              locationsSet.add("class/interface");
          }
          if (taglet.inConstructor())  {
              locationsSet.add("constructor");
          }
          if (taglet.inField()) {
              locationsSet.add("field");
          }
          if (taglet.inMethod()) {
              locationsSet.add("method");
          }
          if (taglet.isInlineTag()) {
              locationsSet.add("inline text");
          }
          String[] locations = locationsSet.toArray(new String[]{});
          if (locations == null || locations.length == 0) {
              //This known tag is excluded.
              return;
          }
          StringBuilder combined_locations = new StringBuilder();
          for (int i = 0; i < locations.length; i++) {
              if (i > 0) {
                  combined_locations.append(", ");
              }
              combined_locations.append(locations[i]);
          }
          messages.warning(ch.getDocTreePath(tag), "doclet.tag_misuse",
              "@" + taglet.getName(), holderType, combined_locations.toString());
      }
docs: Given the taglet, the tag and the type of documentation that the tag
  was found in, print a tag misuse warning.
  @param taglet the taglet representing the misused tag.
  @param tag the misused tag.
  @param holderType the type of documentation that the misused tag was found in.