@Override
	protected boolean isEnabledForContext(ListingActionContext context) {
		if (context.hasSelection() || context.getAddress() == null) {
			return false;
		}
		ProgramLocation loc = context.getLocation();

		return (loc instanceof VariableCommentFieldLocation);
	}
Get a variable using the current location.

@param function
@return null if function is null or if current location is not a stack variable location.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/function/VariableCommentDeleteAction.java