@Override
		public boolean isEnabledForContext(ActionContext actionContext) {
			ProgramLocation loc = getLocationForContext(actionContext);
			if (!isCommentSupported(loc)) {
				return false;
			}
			return CommentTypeUtils.isCommentAllowed(getCodeUnit(actionContext), loc);
		}
{@return comment type or null for Generic Comment}
@param context action context
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/comments/CommentsActionFactory.java