Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ: find method by signature

I wonder if it's possible to find method of object which returns specific type? For example I want to look in autocompletion all methods which return String:

enter image description here

For this example it's easy to find it just by scrolling down, but for objects with large number of methods it can be painful.

like image 667
Igor Konoplyanko Avatar asked Nov 04 '22 09:11

Igor Konoplyanko


1 Answers

Actually there is no default sorting by return type(yet?), even in class structure view. I'm using smart completion(ctrl+shift+space) for this purposes in place where only certain type is accepted, for example:

String s = aClass.<smart completion here>

It will show methods from a aClass that return String at the beginning.

like image 173
ice Avatar answered Dec 30 '22 14:12

ice