private void setupAutoCommentOptions(Options fieldOptions, HelpLocation hl) {
		fieldOptions.registerOption(EXTRA_COMMENT_KEY, OptionType.CUSTOM_TYPE,
			new EolExtraCommentsOption(), hl, "The group of auto comment options",
			() -> new EolExtraCommentsPropertyEditor());
		CustomOption customOption = fieldOptions.getCustomOption(EXTRA_COMMENT_KEY, null);

		if (!(customOption instanceof EolExtraCommentsOption)) {
			throw new AssertException("Someone set an option for " + EXTRA_COMMENT_KEY +
				" that is not the expected " + EolExtraCommentsOption.class.getName() + " type.");
		}

		extraCommentsOption = (EolExtraCommentsOption) customOption;
	}
Constructor
@param model the model that the field belongs to.
@param hlProvider the HightLightStringProvider.
@param displayOptions the Options for display properties.
@param fieldOptions the Options for field specific properties.
Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/field/EolCommentFieldFactory.java