private boolean isWindows() {

		String compilerID =
			currentProgram.getCompilerSpec().getCompilerSpecID().getIdAsString().toLowerCase();
		boolean isWindows = compilerID.contains("windows");
		return isWindows;
	}
Method to set the global variable isWindows
Ghidra/Features/Decompiler/ghidra_scripts/RecoverClassesFromRTTIScript.java