public static int tagToOpcode(int tag) {
		return switch (tag) {
			case H_INVOKEINTERFACE -> INVOKEINTERFACE;
			case H_INVOKESPECIAL -> INVOKESPECIAL;
			case H_INVOKEVIRTUAL -> INVOKEVIRTUAL;
			case H_INVOKESTATIC -> INVOKESTATIC;
			case H_GETFIELD -> GETFIELD;
			case H_GETSTATIC -> GETSTATIC;
			case H_PUTFIELD -> PUTFIELD;
			case H_PUTSTATIC -> PUTSTATIC;
			default -> throw new IllegalStateException("Unsupported tag: " + tag);
		};
	}
Convert a {@link Handle} tag to an instruction opcode.

@param tag
		Some method or field handle tag.

@return Relevant instruction opcode.

@throws IllegalStateException
		When the tag does not have a respective handle opcode.
recaf-core/src/main/java/software/coley/recaf/util/AsmInsnUtil.java