public static int getStackPurge(String methodDescriptor) {
		int stackPurge = 0;
		List<JavaComputationalCategory> categories = getParameterCategories(methodDescriptor);
		for (JavaComputationalCategory cat : categories) {
			switch (cat) {
				case CAT_1:
					stackPurge += PcodeInjectLibraryJava.REFERENCE_SIZE;
					break;
				case CAT_2:
					stackPurge += PcodeInjectLibraryJava.REFERENCE_SIZE * 2;
					break;
				default:
					throw new IllegalArgumentException("Bad category!");
			}
		}
		return stackPurge;
	}
Calculates the stack purge associated with a given method descriptor. Each parameter of computational category
one contributes 4 to the stack purge, and each parameter of computational category 2 contributes 8.
@param methodDescriptor
@return
Ghidra/Processors/JVM/src/main/java/ghidra/javaclass/format/DescriptorDecoder.java