public void setMenuPath(String[] newPath) {
		if (newPath == null || newPath.length == 0) {
			throw new IllegalArgumentException("Menu path cannot be null or empty");
		}
		MenuData oldData = cloneData();
		menuPath = processMenuPath(newPath);
		mnemonic = getMnemonic(newPath);
		firePropertyChanged(oldData);
	}
See the description in {@link #getParentMenuGroup()}

@param newParentMenuGroup the parent group
Ghidra/Framework/Docking/src/main/java/docking/action/MenuData.java