public static int getReturnOpcode(@Nonnull Type type) {
		return switch (type.getSort()) {
			case Type.VOID -> RETURN;
			case Type.BOOLEAN, Type.CHAR, Type.BYTE, Type.SHORT, Type.INT -> IRETURN;
			case Type.FLOAT -> FRETURN;
			case Type.LONG -> LRETURN;
			case Type.DOUBLE -> DRETURN;
			default -> ARETURN;
		};
	}
@param type
		Some type.

@return Method return instruction opcode for the given type.
recaf-core/src/main/java/software/coley/recaf/util/AsmInsnUtil.java