If you create a local variable and try to assign it, Eclipse first enters the appropriate return types into the autocomplete list, for example
AbstractCollection obj; boolean temp = obj.<autocomplete list>
If you declare obj as AbstractCollection, you will not see other methods.
source share