ParsedInnterInstructionParsedInnerInstruction.index
should correspond to the index of the outer instruction that houses the inner instruction.
So if parsedTransaction.meta.innerInstructions[0].index
is say 1, then it means the outer instruction is parsedTransaction.transaction.message.instructions[1]
is the parent.