static Set < Integer > findReturnsAndThrows ( final List < Instruction > instructions ) { return find ( instruction -> instruction . getType ( ) == Instruction . InstructionType . RETURN || instruction . getType ( ) == Instruction . InstructionType . THROW , instructions ) ; }
Searches for return instructions in the given instructions .