boolean isOnSymbol(ListingActionContext context) {
		Symbol s = plugin.getSymbol(context);
		if (s == null) {
			return false;
		}
		SymbolType type = s.getSymbolType();
		return (type == SymbolType.LABEL && !s.isDynamic()) ||
			(type == SymbolType.FUNCTION && s.getSource() != SourceType.DEFAULT);
	}
Creates a new instance of the action.

@param plugin Label Manager Plugin instance
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/label/RemoveLabelAction.java