private String getDefaultAnchor(Path file) {
		String filename = file.getFileName().toString();
		int extension = filename.toLowerCase().indexOf(".htm");
		if (extension != -1) {
			return filename.substring(0, extension);
		}
		throw new AssertException("Cannot have HTML file without an .html extension");
	}
A representation of a help location, which can be a file or a file with an anchor inside of
that file.
<p>
This class is used to generate target information for TOC files and to generate link information
for the help map files.
<p>
<br>
<p>
<b>Warning: </b> The ID generated by this class is specific to the JavaHelp system.  It is of 
the format:
<p>
<code>TopicName_anchorName</code>
<p>
or
<p>
<code>TopicName_Filename</code>
Ghidra/Framework/Help/src/main/java/help/validator/model/AnchorDefinition.java