@Override
	protected boolean isEnabledForContext(ListingActionContext context) {

		Address address = context.getAddress();
		if (address == null) {
			return false;
		}

		// Action only intended for use where PowerPC VLE instructions are available.
		// The presence of the VLE variant indicator in the language ID can be used for this 
		// determination.

		Program program = context.getProgram();
		Language lang = program.getLanguage();
		Processor proc = lang.getProcessor();

		if (!proc.equals(Processor.findOrPossiblyCreateProcessor("PowerPC")) ||
			lang.getLanguageID().toString().indexOf(":VLE") < 0) {
			return false;
		}

		return plugin.checkDisassemblyEnabled(context, address, true);
	}
Action for PPC mode disassembly when VLE instruction support is present
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/disassembler/PowerPCDisassembleAction.java