@Override
	protected void apply(MangledContext mangledContext, DemangledObject demangled, MessageLog log,
			TaskMonitor monitor) {
		try {
			if (demangled instanceof DemangledFunction defunc) {
				defunc.applyTo(mangledContext.getProgram(), mangledContext.getAddress(),
					mangledContext.getOptions(), monitor);
			}
		}
		catch (Exception e) {
			// Failed to apply demangled function
		}

		// Apply it as a variable instead of as a function

		String mangled = demangled.getMangledString();
		String original = demangled.getOriginalDemangled();
		String name = demangled.getName();
		Demangled namespace = demangled.getNamespace();

		DemangledVariable demangledVariable = new DemangledVariable(mangled, original, name);
		demangledVariable.setNamespace(namespace);

		super.apply(mangledContext, demangledVariable, log, monitor);
	}
A version of the demangler analyzer to handle Rust symbols
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/analysis/rust/RustDemanglerAnalyzer.java