code: private static boolean isStackCleared(final Instruction instruction) {
          return instruction.getType() == Instruction.InstructionType.RETURN || instruction.getType() == Instruction.InstructionType.THROW;
      }
docs: Checks if the stack will be cleared on invoking the given instruction.
  
  @param instruction The instruction
  @return {@code true} if the stack will be cleared