@Override
	protected void init() {
		initializeServices();
		addCycleGroupActions();
		updateFavoriteActions();

	}
The FunctionPlugin allows creation of a function from the current selection.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/function/FunctionPlugin.java