gi: support finding suitable method that has optional argument