private List<AnchorDefinition> getDuplicateTopicAnchorDefinitions(HelpTopic helpTopic) {
		Map<String, List<AnchorDefinition>> map = new HashMap<>();
		Collection<HelpFile> helpFiles = helpTopic.getHelpFiles();

		// collect all the anchor definitions by name
		for (HelpFile helpFile : helpFiles) {
			Collection<AnchorDefinition> definitions = helpFile.getAllAnchorDefinitions();
			for (AnchorDefinition anchorDefinition : definitions) {
				String name = anchorDefinition.getAnchorName();
				if (name == null) {
					continue; // ignore anchor definitions, as they don't exist in the source code
				}
				List<AnchorDefinition> list = map.get(name);
				if (list == null) {
					list = new ArrayList<>();
					map.put(name, list);
				}
				list.add(anchorDefinition);
			}
		}

		// add the contents of all the lists with more than one item
		List<AnchorDefinition> list = new ArrayList<>();
		Collection<List<AnchorDefinition>> values = map.values();
		for (List<AnchorDefinition> definitions : values) {
			if (definitions.size() > 1) {
				list.addAll(definitions);
			}
		}
		return list;
	}
Returns true if this help location represents a source of input files to generate help output
@return true if this help location represents a source of input files to generate help output
Ghidra/Framework/Help/src/main/java/help/validator/location/HelpModuleLocation.java