Minor update in findMethodsReturning for optimization.

Signed-off-by: AndroWiiid <androwiiid@gmail.com>