@Override
		protected boolean isEnabledForContext(ListingActionContext context) {
			Address address = context.getAddress();
			if (context.hasSelection() || address == null) {
				return false;
			}
			return context.getProgram().getFunctionManager().getFunctionContaining(address) != null;
		}
Class that implements hashing the current function in the listing.
Ghidra/Features/FunctionID/src/main/java/ghidra/feature/fid/plugin/FidDebugPlugin.java