private Address getFunctionCallAddress(Instruction instr) {
		if ((instr != null) && instr.getFlowType().isCall()) {
			Program program = instr.getProgram();
			FunctionManager functionMgr = program.getFunctionManager();
			Reference[] refs =
				program.getReferenceManager().getReferencesFrom(instr.getMinAddress());
			for (Reference ref : refs) {
				Address toAddr = ref.getToAddress();
				if (functionMgr.getFunctionAt(toAddr) != null) {
					return toAddr;
				}
			}
		}
		return null;
	}
Creates a new action with the given name and associated to the given
plugin.
@param plugin the plugin this action is associated with.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/function/SetStackDepthChangeAction.java