protected boolean hasComment(CommentType type, Address address) {
		switch (type) {
			case PLATE:
				return plateCommentMap.get(address) != null;
			case PRE:
				return preCommentMap.get(address) != null;
			case POST:
				return postCommentMap.get(address) != null;
			case EOL:
				return eolCommentMap.get(address) != null;
			default:
				throw new IllegalArgumentException("Unsupported comment type: " + type.name());
		}
	}
Loader option to display line numbers
Ghidra/Features/Base/src/main/java/ghidra/app/util/opinion/AbstractPeDebugLoader.java