public static int indexOf(@Nonnull AbstractInsnNode insn) {
		int i = 0;
		while ((insn = insn.getPrevious()) != null)
			i++;
		return i;
	}
@param insn
		Instruction to get index of.

@return Index of instruction in containing method.
recaf-core/src/main/java/software/coley/recaf/util/AsmInsnUtil.java